X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fbbdc7bf854259c178b03c59ec4c8cca753026bd..f3ff831f3be88834579fc9a0ce17f24745650faf:/include/wx/cocoa/string.h?ds=sidebyside diff --git a/include/wx/cocoa/string.h b/include/wx/cocoa/string.h index 75e782dbe2..e578e0381e 100644 --- a/include/wx/cocoa/string.h +++ b/include/wx/cocoa/string.h @@ -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