2
0
Эх сурвалжийг харах

Void functions return null

Hugh Sanderson 16 жил өмнө
parent
commit
2fd5f88b73
1 өөрчлөгдсөн 4 нэмэгдсэн , 0 устгасан
  1. 4 0
      std/cpp/CppXml__.hx

+ 4 - 0
std/cpp/CppXml__.hx

@@ -216,12 +216,14 @@ class CppXml__ {
 		if( nodeType != Xml.Element )
 			throw "bad nodeType";
 		Reflect.setField (_attributes, att, value );
+		return null;
 	}
 
 	public function remove( att : String ) : Void{
 		if( nodeType != Xml.Element )
 			throw "bad nodeType";
 		Reflect.deleteField( _attributes, att );
+		return null;
 	}
 
 	public function exists( att : String ) : Bool {
@@ -334,6 +336,7 @@ class CppXml__ {
 		if( x._parent != null ) x._parent._children.remove(x);
 		x._parent = this;
 		_children.push( x );
+		return null;
 	}
 
    function removeChild( x_ : Xml ) : Bool {
@@ -352,6 +355,7 @@ class CppXml__ {
 		if( x._parent != null ) x._parent._children.remove(x);
 		x._parent = this;
 		_children.insert( pos, x );
+		return null;
 	}
 
 	public function toString() {