X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/deb63b954bbf5fd364bc4c6bbabf0e815a677d95..119727ad9e58e42326764a259a5b88267bb43528:/include/wx/os2/palette.h diff --git a/include/wx/os2/palette.h b/include/wx/os2/palette.h index bdb45a57e0..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; @@ -22,7 +23,7 @@ class WXDLLEXPORT wxPaletteRefData: public wxGDIRefData public: wxPaletteRefData(); ~wxPaletteRefData(); -protected: +// protected: WXHPALETTE m_hPalette; HPS m_hPS; }; // end of CLASS wxPaletteRefData @@ -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);