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