X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8f884a0dccd6b642f35c441ac9bfc87a6d5b4d35..cdbd62d6ff290fd58acd1bc5574dfc79db3a6f70:/src/msw/palette.cpp diff --git a/src/msw/palette.cpp b/src/msw/palette.cpp index 570f4d96c8..faa896b019 100644 --- a/src/msw/palette.cpp +++ b/src/msw/palette.cpp @@ -4,7 +4,6 @@ // Author: Julian Smart // Modified by: // Created: 04/01/98 -// RCS-ID: $Id$ // Copyright: (c) Julian Smart // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -32,9 +31,9 @@ public: wxPaletteRefData() { Init(); } wxPaletteRefData(int n, - unsigned char *red, - unsigned char *green, - unsigned char *blue) + const unsigned char *red, + const unsigned char *green, + const unsigned char *blue) { Init(); @@ -55,6 +54,7 @@ public: } wxPaletteRefData(const wxPaletteRefData& data) + : wxGDIRefData() { Init(); @@ -116,9 +116,9 @@ IMPLEMENT_DYNAMIC_CLASS(wxPalette, wxGDIObject) #define M_PALETTEDATA ((wxPaletteRefData *)m_refData) bool wxPalette::Create(int n, - unsigned char *red, - unsigned char *green, - unsigned char *blue) + const unsigned char *red, + const unsigned char *green, + const unsigned char *blue) { m_refData = new wxPaletteRefData(n, red, green, blue); @@ -132,7 +132,7 @@ wxGDIRefData *wxPalette::CreateGDIRefData() const wxGDIRefData *wxPalette::CloneGDIRefData(const wxGDIRefData *data) const { - return new wxPaletteRefData(*wx_static_cast(const wxPaletteRefData *, data)); + return new wxPaletteRefData(*static_cast(data)); } int wxPalette::GetColoursCount() const