X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fc9361e3ec5b81a7e8c32d93a03aea0b2cd3e045..8084f8b7c6dd538fce55d2542e9b2e70bc69f760:/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;