diff --git a/src/osx/core/cfstring.cpp b/src/osx/core/cfstring.cpp index d067feaa1e..3d10e29b7e 100644 --- a/src/osx/core/cfstring.cpp +++ b/src/osx/core/cfstring.cpp @@ -670,7 +670,7 @@ wxString wxCFStringRef::AsString(wxFontEncoding WXUNUSED_IN_UNICODE(encoding)) #error "unsupported unicode representation" #endif #else - wxString result(buf, cStrLen) ; + result = wxString(buf, cStrLen) ; #endif delete[] buf ;