X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f97c985452b20a8c2f0bbfb1d0275298bf09fb45..f8c4475a3e579655f6a962822824596a7a9cfb66:/include/wx/motif/font.h diff --git a/include/wx/motif/font.h b/include/wx/motif/font.h index 769b4d6352..f5b5a2cb6f 100644 --- a/include/wx/motif/font.h +++ b/include/wx/motif/font.h @@ -66,7 +66,6 @@ public: wxFont(); wxFont(int pointSize, int family, int style, int weight, bool underlined = FALSE, const wxString& faceName = wxEmptyString); inline wxFont(const wxFont& font) { Ref(font); } - inline wxFont(const wxFont* font) { if (font) Ref(*font); } ~wxFont(); @@ -92,8 +91,8 @@ public: void SetUnderlined(bool underlined); 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; } + inline bool operator == (const wxFont& font) const { return m_refData == font.m_refData; } + inline bool operator != (const wxFont& font) const { return m_refData != font.m_refData; } // Implementation