- bool operator == (const wxPalette& palette) { return m_refData == palette.m_refData; }
- bool operator != (const wxPalette& palette) { return m_refData != palette.m_refData; }
+ bool operator == (const wxPalette& palette) const { return m_refData == palette.m_refData; }
+ bool operator != (const wxPalette& palette) const { return m_refData != palette.m_refData; }