X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3bf5a59b5e058bebffcf9d87f03550b4ecf93e73..e4277538a535d6d6c049f0b0ead9ed2b07cd93f2:/include/wx/cocoa/font.h?ds=inline diff --git a/include/wx/cocoa/font.h b/include/wx/cocoa/font.h index 863837c428..c0743e4441 100644 --- a/include/wx/cocoa/font.h +++ b/include/wx/cocoa/font.h @@ -12,10 +12,6 @@ #ifndef _WX_FONT_H_ #define _WX_FONT_H_ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma interface "font.h" -#endif - class WXDLLEXPORT wxFontRefData: public wxGDIRefData { friend class WXDLLEXPORT wxFont; @@ -27,11 +23,11 @@ public: , m_style(wxNORMAL) , m_weight(wxNORMAL) , m_underlined(FALSE) - , m_faceName("Geneva") + , m_faceName(wxT("Geneva")) , m_encoding(wxFONTENCODING_DEFAULT) { Init(10, wxDEFAULT, wxNORMAL, wxNORMAL, FALSE, - "Geneva", wxFONTENCODING_DEFAULT); + wxT("Geneva"), wxFONTENCODING_DEFAULT); } wxFontRefData(const wxFontRefData& data) @@ -99,13 +95,7 @@ class WXDLLEXPORT wxFont : public wxFontBase { public: // ctors and such - wxFont() { Init(); } - wxFont(const wxFont& font) - : wxFontBase() - { - Init(); - Ref(font); - } + wxFont() { } wxFont(int size, int family, @@ -115,15 +105,11 @@ public: const wxString& face = wxEmptyString, wxFontEncoding encoding = wxFONTENCODING_DEFAULT) { - Init(); - (void)Create(size, family, style, weight, underlined, face, encoding); } wxFont(const wxNativeFontInfo& info) { - Init(); - (void)Create(info); } @@ -141,9 +127,6 @@ public: virtual ~wxFont(); - // assignment - wxFont& operator=(const wxFont& font); - // implement base class pure virtuals virtual int GetPointSize() const; virtual int GetFamily() const; @@ -168,9 +151,6 @@ public: virtual bool RealizeResource(); protected: - // common part of all ctors - void Init(); - void Unshare(); private: