X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fbbdc7bf854259c178b03c59ec4c8cca753026bd..2a45803fc3877afd0ae3ce356dfe216505165882:/include/wx/cocoa/string.h 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