X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d3c7fc996a73e9f6a83067bc28a3c5581a3fee65..d2e66707deb10dea6f92e3e4092f8a43ef942a5d:/src/mgl/palette.cpp diff --git a/src/mgl/palette.cpp b/src/mgl/palette.cpp index 531023287f..fcac1e22ea 100644 --- a/src/mgl/palette.cpp +++ b/src/mgl/palette.cpp @@ -63,21 +63,6 @@ wxPalette::~wxPalette() { } -bool wxPalette::operator == (const wxPalette& palette) const -{ - return m_refData == palette.m_refData; -} - -bool wxPalette::operator != (const wxPalette& palette) const -{ - return m_refData != palette.m_refData; -} - -bool wxPalette::Ok(void) const -{ - return (m_refData != NULL); -} - bool wxPalette::Create(int n, const unsigned char *red, const unsigned char *green, @@ -141,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; }