X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3dccf96eabc68d95839782d35e6193855f007fd2..d7e0343413296e8719386abbcb55ecbc4dceba36:/src/mac/corefoundation/cfstring.cpp diff --git a/src/mac/corefoundation/cfstring.cpp b/src/mac/corefoundation/cfstring.cpp index 8571f13097..c7b9bb7b6a 100644 --- a/src/mac/corefoundation/cfstring.cpp +++ b/src/mac/corefoundation/cfstring.cpp @@ -7,6 +7,7 @@ // RCS-ID: $Id$ // Copyright: (c) Stefan Csomor // Licence: wxWindows licence +// Usage: Darwin (base library) ///////////////////////////////////////////////////////////////////////////// #include "wx/wxprec.h" @@ -596,7 +597,15 @@ wxFontEncoding wxMacGetFontEncFromSystemEnc(wxUint32 encoding) // // converts this string into a carbon foundation string with optional pc 2 mac encoding -void wxMacCFStringHolder::Assign( const wxString &st , wxFontEncoding encoding ) + +void wxMacCFStringHolder::Assign( CFStringRef ref , bool release ) +{ + Release(); + m_cfs = ref; + m_release = release; +} + +void wxMacCFStringHolder::Assign( const wxString &st , wxFontEncoding WXUNUSED_IN_UNICODE(encoding) ) { Release() ; if (st.IsEmpty()) @@ -629,7 +638,7 @@ void wxMacCFStringHolder::Assign( const wxString &st , wxFontEncoding encoding ) m_release = true ; } -wxString wxMacCFStringHolder::AsString(wxFontEncoding encoding) +wxString wxMacCFStringHolder::AsString(wxFontEncoding WXUNUSED_IN_UNICODE(encoding)) { if ( m_cfs == NULL ) return wxEmptyString ;