X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d3b9f782ef3949f583e8ac53795d36787f044fc3..113e0a926f3bc7994ca911d238da35c9be798232:/src/x11/palette.cpp diff --git a/src/x11/palette.cpp b/src/x11/palette.cpp index 82c455bd80..dc3f06801d 100644 --- a/src/x11/palette.cpp +++ b/src/x11/palette.cpp @@ -175,9 +175,12 @@ wxGDIRefData *wxPalette::CreateGDIRefData() const return new wxPaletteRefData; } -wxGDIRefData *wxPalette::CloneGDIRefData(const wxGDIRefData *data) const +wxGDIRefData * +wxPalette::CloneGDIRefData(const wxGDIRefData * WXUNUSED(data)) const { - return new wxPaletteRefData(*static_cast(data)); + wxFAIL_MSG( wxS("Cloning palettes is not implemented in wxX11.") ); + + return new wxPaletteRefData; } int wxPalette::GetPixel(unsigned char WXUNUSED(red),