X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/650291520681b5b5e3c2509838dd9f1f0392c84c..119727ad9e58e42326764a259a5b88267bb43528:/include/wx/os2/palette.h diff --git a/include/wx/os2/palette.h b/include/wx/os2/palette.h index 78d794277b..9d445157d1 100644 --- a/include/wx/os2/palette.h +++ b/include/wx/os2/palette.h @@ -13,6 +13,7 @@ #define _WX_PALETTE_H_ #include "wx/gdiobj.h" +#include "wx/os2/private.h" class WXDLLEXPORT wxPalette; @@ -62,8 +63,10 @@ public: virtual bool Ok(void) const { return (m_refData != NULL) ; } inline wxPalette& operator = (const wxPalette& rPalette) { if (*this == rPalette) return (*this); Ref(rPalette); return *this; } - inline bool operator == (const wxPalette& rPalette) { return m_refData == rPalette.m_refData; } - inline bool operator != (const wxPalette& rPalette) { return m_refData != rPalette.m_refData; } + inline bool operator == (const wxPalette& rPalette) const + { return m_refData == rPalette.m_refData; } + inline bool operator != (const wxPalette& rPalette) const + { return m_refData != rPalette.m_refData; } virtual bool FreeResource(bool bForce = FALSE);