|
@@ -3,8 +3,7 @@ package cpp;
|
|
extern class NativeString {
|
|
extern class NativeString {
|
|
|
|
|
|
public static inline function c_str( inString:String ) : ConstPointer<Char> {
|
|
public static inline function c_str( inString:String ) : ConstPointer<Char> {
|
|
- var result:ConstPointer<Char> = untyped inString.__s;
|
|
|
|
- return result;
|
|
|
|
|
|
+ return cpp.ConstPointer.fromPointer(untyped inString.__s);
|
|
}
|
|
}
|
|
public static inline function fromPointer(inPtr:ConstPointer<Char> ) : String {
|
|
public static inline function fromPointer(inPtr:ConstPointer<Char> ) : String {
|
|
return untyped __global__.String(inPtr.ptr);
|
|
return untyped __global__.String(inPtr.ptr);
|