X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/55ccdb93e4ae4b606a4068cb37492c1ec3ed77a6..04fa04d8067d235ab45b5bc05b65f0679634b541:/src/mgl/palette.cpp diff --git a/src/mgl/palette.cpp b/src/mgl/palette.cpp index 48717b498b..fcac1e22ea 100644 --- a/src/mgl/palette.cpp +++ b/src/mgl/palette.cpp @@ -63,11 +63,6 @@ wxPalette::~wxPalette() { } -bool wxPalette::IsOk(void) const -{ - return (m_refData != NULL); -} - bool wxPalette::Create(int n, const unsigned char *red, const unsigned char *green, @@ -131,12 +126,12 @@ bool wxPalette::GetRGB(int pixel, int wxPalette::GetColoursCount() const { - wxCHECK_MSG( Ok(), 0, wxT("invalid palette") ); + wxCHECK_MSG( IsOk(), 0, wxT("invalid palette") ); return M_PALETTEDATA->m_count; } palette_t *wxPalette::GetMGLpalette_t() const { - wxCHECK_MSG( Ok(), NULL, wxT("invalid palette") ); + wxCHECK_MSG( IsOk(), NULL, wxT("invalid palette") ); return M_PALETTEDATA->m_entries; }