瀏覽代碼

String can be null

Hugh Sanderson 13 年之前
父節點
當前提交
5de702c144
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gencpp.ml

+ 1 - 1
gencpp.ml

@@ -324,7 +324,7 @@ let gen_close_namespace output class_path =
 
 
 (* The basic types can have default values and are passesby value *)
 (* The basic types can have default values and are passesby value *)
 let cant_be_null = function
 let cant_be_null = function
-	| "Int" | "Bool" | "Float" | "::String" | "::haxe::io::Unsigned_char__" -> true
+	| "Int" | "Bool" | "Float" |  "::haxe::io::Unsigned_char__" -> true
 	| "int" | "bool" | "double" | "float" -> true
 	| "int" | "bool" | "double" | "float" -> true
 	| _ -> false
 	| _ -> false