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();
#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);
wxGDIRefData *wxPalette::CloneGDIRefData(const wxGDIRefData *data) const
{
- return new wxPaletteRefData(*wx_static_cast(const wxPaletteRefData *, data));
+ return new wxPaletteRefData(*static_cast<const wxPaletteRefData *>(data));
}
int wxPalette::GetColoursCount() const