X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2a32f1733dd39882d58627d5cb22dbdeb54eb693..81853b98619293be66074d74d2557973c0f3ab21:/include/wx/mac/corefoundation/cfstring.h diff --git a/include/wx/mac/corefoundation/cfstring.h b/include/wx/mac/corefoundation/cfstring.h index 428e5c8c14..526f5791a5 100644 --- a/include/wx/mac/corefoundation/cfstring.h +++ b/include/wx/mac/corefoundation/cfstring.h @@ -9,6 +9,9 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// +#ifndef __WX_CFSTRINGHOLDER_H__ +#define __WX_CFSTRINGHOLDER_H__ + #ifdef __DARWIN__ #include #else @@ -70,7 +73,7 @@ public: void Assign( const wxString &str , wxFontEncoding encoding ) ; - operator CFStringRef () { return m_cfs; } + operator CFStringRef () const { return m_cfs; } wxString AsString( wxFontEncoding encoding = wxFONTENCODING_DEFAULT ) ; private: @@ -81,3 +84,4 @@ private: DECLARE_NO_COPY_CLASS( wxMacCFStringHolder ) } ; +#endif //__WXCFSTRINGHOLDER_H__