X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5ea105e0ba20c15e4d83f829e1c4faeb0a4952f0..29149a64916d6fdc53e445adca9ef83bc58fb6c3:/src/msw/palette.cpp?ds=sidebyside diff --git a/src/msw/palette.cpp b/src/msw/palette.cpp index 77569777f7..724140c3aa 100644 --- a/src/msw/palette.cpp +++ b/src/msw/palette.cpp @@ -30,9 +30,7 @@ #include "assert.h" -#if !USE_SHARED_LIBRARIES IMPLEMENT_DYNAMIC_CLASS(wxPalette, wxGDIObject) -#endif /* * Palette @@ -64,7 +62,7 @@ wxPalette::~wxPalette(void) // FreeResource(TRUE); } -bool wxPalette::FreeResource(bool force) +bool wxPalette::FreeResource(bool WXUNUSED(force)) { if ( M_PALETTEDATA && M_PALETTEDATA->m_hPalette) { @@ -80,7 +78,7 @@ bool wxPalette::Create(int n, const unsigned char *red, const unsigned char *gre #ifdef __WXWINE__ return (FALSE); - + #else m_refData = new wxPaletteRefData; @@ -104,7 +102,7 @@ bool wxPalette::Create(int n, const unsigned char *red, const unsigned char *gre M_PALETTEDATA->m_hPalette = (WXHPALETTE) CreatePalette((LPLOGPALETTE)npPal); LocalFree((HANDLE)npPal); return TRUE; - + #endif }