]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/cocoa/string.h
adding comment
[wxWidgets.git] / include / wx / cocoa / string.h
index 75e782dbe24920ac361ce1c5fdd3a7feb35e90fc..e578e0381e85e0837d1fb22b2316c886cba4479a 100644 (file)
@@ -44,7 +44,7 @@ inline NSString* wxInitNSStringWithWxString(NSString *nsstring, const wxString &
 inline wxString wxStringWithNSString(NSString *nsstring)
 {
 #if wxUSE_UNICODE
-    return wxString::FromUTF8([nsstring UTF8String]);
+    return wxString::FromUTF8Unchecked([nsstring UTF8String]);
 #else
     return wxString([nsstring lossyCString]);
 #endif // wxUSE_UNICODE