]> git.saurik.com Git - wxWidgets.git/blobdiff - src/x11/palette.cpp
Don't use "Cancel" button in the about dialog of the listctrl sample.
[wxWidgets.git] / src / x11 / palette.cpp
index 8062102b748d492799559b657cce0380919b448b..dc3f06801defddfbbadb7bb3b0e16685eb767b24 100644 (file)
@@ -77,7 +77,7 @@ wxPaletteRefData::wxPaletteRefData()
 
 wxPaletteRefData::~wxPaletteRefData()
 {
-    Display *display = (Display*) NULL;
+    Display *display = NULL;
 
     wxList::compatibility_iterator node, next;
 
@@ -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<const wxPaletteRefData *>(data));
+    wxFAIL_MSG( wxS("Cloning palettes is not implemented in wxX11.") );
+
+    return new wxPaletteRefData;
 }
 
 int wxPalette::GetPixel(unsigned char WXUNUSED(red),