From 18d52fedab2df2cdb0b897a2c02089ab8b5932e4 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sat, 24 Nov 2007 09:39:31 +0000 Subject: [PATCH] adding assign git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50210 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/corefoundation/cfstring.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/mac/corefoundation/cfstring.cpp b/src/mac/corefoundation/cfstring.cpp index 95a2c7a042..c7b9bb7b6a 100644 --- a/src/mac/corefoundation/cfstring.cpp +++ b/src/mac/corefoundation/cfstring.cpp @@ -597,6 +597,14 @@ wxFontEncoding wxMacGetFontEncFromSystemEnc(wxUint32 encoding) // // converts this string into a carbon foundation string with optional pc 2 mac 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() ;