X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fbbdc7bf854259c178b03c59ec4c8cca753026bd..d642db66a5efc82d374b813022c72ba88bc50839:/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