friend class WXDLLIMPEXP_FWD_CORE wxPalette;
- DECLARE_NO_ASSIGN_CLASS(wxPaletteRefData)
+ wxDECLARE_NO_ASSIGN_CLASS(wxPaletteRefData);
};
wxPaletteRefData::wxPaletteRefData()
m_count = 0;
}
-wxPaletteRefData::wxPaletteRefData(const wxPaletteRefData& data)
+wxPaletteRefData::wxPaletteRefData(const wxPaletteRefData& data) : wxGDIRefData()
{
m_count = data.m_count;
m_palette = new wxColour[m_count];
wxGDIRefData *wxPalette::CloneGDIRefData(const wxGDIRefData *data) const
{
- return new wxPaletteRefData(*wx_static_cast(const wxPaletteRefData *, data));
+ return new wxPaletteRefData(*static_cast<const wxPaletteRefData *>(data));
}
#endif // wxUSE_PALETTE