X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5185263fc5f0729ea1b926f9c2dcdc0153f6384e..d11e8786ed13b72766eea18cb577cc00f9f08f41:/include/wx/mac/corefoundation/cfstring.h?ds=sidebyside diff --git a/include/wx/mac/corefoundation/cfstring.h b/include/wx/mac/corefoundation/cfstring.h index 23e2f8d75b..428e5c8c14 100644 --- a/include/wx/mac/corefoundation/cfstring.h +++ b/include/wx/mac/corefoundation/cfstring.h @@ -32,23 +32,20 @@ void wxMacWakeUp() ; class wxMacCFStringHolder { public: - wxMacCFStringHolder() + wxMacCFStringHolder() + : m_cfs(NULL) , m_release(false) { - m_cfs = NULL ; - m_release = false ; } wxMacCFStringHolder(const wxString &str , wxFontEncoding encoding ) + : m_cfs(NULL) , m_release(false) { - m_cfs = NULL ; - m_release = false ; Assign( str , encoding ) ; } wxMacCFStringHolder(CFStringRef ref , bool release = true ) + : m_cfs(ref) , m_release(release) { - m_cfs = ref ; - m_release = release ; } ~wxMacCFStringHolder() @@ -80,5 +77,7 @@ private: CFStringRef m_cfs; bool m_release ; + + DECLARE_NO_COPY_CLASS( wxMacCFStringHolder ) } ;