X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/88ef3a57a47f840adea9d38bc11cb30689a0838a..a3ab1c18017bb08329e73918f9f502ea00cdb447:/include/wx/palette.h diff --git a/include/wx/palette.h b/include/wx/palette.h index 28951a21ce..b04f513466 100644 --- a/include/wx/palette.h +++ b/include/wx/palette.h @@ -25,8 +25,9 @@ class WXDLLEXPORT wxPaletteBase: public wxGDIObject public: virtual ~wxPaletteBase() { } - virtual bool Ok() const = 0; - virtual int GetColoursCount() const { wxFAIL_MSG( _T("not implemented") ); return 0; }; + virtual bool Ok() const { return IsOk(); } + virtual bool IsOk() const = 0; + virtual int GetColoursCount() const { wxFAIL_MSG( _T("not implemented") ); return 0; } }; #if defined(__WXPALMOS__)