diff --git a/src/osx/core/cfstring.cpp b/src/osx/core/cfstring.cpp index 27471b24e5..78d7a289bf 100644 --- a/src/osx/core/cfstring.cpp +++ b/src/osx/core/cfstring.cpp @@ -621,7 +621,7 @@ wxCFStringRef::wxCFStringRef( const wxString &st , wxFontEncoding WXUNUSED_IN_UN #else #error "unsupported Unicode representation" #endif - CFStringref ref = CFStringCreateWithBytes( kCFAllocatorDefault, + CFStringRef ref = CFStringCreateWithBytes( kCFAllocatorDefault, (const UInt8*)data, size, cfencoding, false /* no BOM */ ); if (ref) {