X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/519cb848a8f4c91c73421bb75314754284e593a4..aa4b7ef978937fe5d93fda9276ecbbee0cd66517:/include/wx/mac/palette.h diff --git a/include/wx/mac/palette.h b/include/wx/mac/palette.h index c359654e79..8894340703 100644 --- a/include/wx/mac/palette.h +++ b/include/wx/mac/palette.h @@ -16,19 +16,22 @@ #pragma interface "palette.h" #endif +#include "wx/colour.h" #include "wx/gdiobj.h" class WXDLLEXPORT wxPalette; class WXDLLEXPORT wxPaletteRefData: public wxGDIRefData { + DECLARE_NO_COPY_CLASS(wxPaletteRefData) + friend class WXDLLEXPORT wxPalette; public: wxPaletteRefData(); ~wxPaletteRefData(); protected: - wxColour* m_palette; - wxInt32 m_count ; + wxColour* m_palette; + wxInt32 m_count ; }; #define M_PALETTEDATA ((wxPaletteRefData *)m_refData) @@ -39,7 +42,9 @@ class WXDLLEXPORT wxPalette: public wxGDIObject public: wxPalette(); - inline wxPalette(const wxPalette& palette) { Ref(palette); } + wxPalette(const wxPalette& palette) + : wxGDIObject() + { Ref(palette); } wxPalette(int n, const unsigned char *red, const unsigned char *green, const unsigned char *blue); ~wxPalette();