X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bbcdf8bc7ca806d8278c7cb6d09d5590378b67d8..9018abe3ef28d237b0421c8d96987907adbe5532:/include/wx/msw/font.h?ds=sidebyside diff --git a/include/wx/msw/font.h b/include/wx/msw/font.h index 2ce96b9bd9..32b37a954b 100644 --- a/include/wx/msw/font.h +++ b/include/wx/msw/font.h @@ -25,6 +25,7 @@ class WXDLLEXPORT wxFontRefData: public wxGDIRefData friend class WXDLLEXPORT wxFont; public: wxFontRefData(void); + wxFontRefData(const wxFontRefData& data); ~wxFontRefData(void); protected: bool m_temporary; // If TRUE, the pointer to the actual font @@ -53,7 +54,6 @@ public: wxFont(void); wxFont(int PointSize, int Family, int Style, int Weight, bool underlined = FALSE, const wxString& Face = wxEmptyString); inline wxFont(const wxFont& font) { Ref(font); } - inline wxFont(const wxFont* font) { /* UnRef(); */ if (font) Ref(*font); } ~wxFont(void); @@ -92,6 +92,9 @@ public: inline wxFont& operator = (const wxFont& font) { if (*this == font) return (*this); Ref(font); return *this; } inline bool operator == (const wxFont& font) { return m_refData == font.m_refData; } inline bool operator != (const wxFont& font) { return m_refData != font.m_refData; } + +protected: + void Unshare(); }; #endif