X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fc9361e3ec5b81a7e8c32d93a03aea0b2cd3e045..db7035e48a4ccc6265fa01949cb92db3c6b6c17f:/include/wx/font.h diff --git a/include/wx/font.h b/include/wx/font.h index 9b87cafd11..3b808ac2bd 100644 --- a/include/wx/font.h +++ b/include/wx/font.h @@ -155,13 +155,9 @@ public: // from the string representation of wxNativeFontInfo static wxFont *New(const wxString& strNativeFontDesc); - // was the font successfully created? - bool Ok() const { return IsOk(); } - bool IsOk() const { return m_refData != NULL; } - // comparison - bool operator == (const wxFont& font) const; - bool operator != (const wxFont& font) const; + bool operator==(const wxFont& font) const; + bool operator!=(const wxFont& font) const { return !(*this == font); } // accessors: get the font characteristics virtual int GetPointSize() const = 0;