From 3db7220e05a2197d27adf72ce5e52a037fe49670 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 16 Oct 2004 19:41:18 +0000 Subject: [PATCH] unused params warnings (patch 1048431) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29919 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/gtk/colordlg.h | 9 +++++---- include/wx/gtk/msgdlg.h | 11 ++++++----- include/wx/gtk1/colordlg.h | 9 +++++---- include/wx/gtk1/msgdlg.h | 11 ++++++----- 4 files changed, 22 insertions(+), 18 deletions(-) diff --git a/include/wx/gtk/colordlg.h b/include/wx/gtk/colordlg.h index 9db85c55a2..3eb2f3afc7 100644 --- a/include/wx/gtk/colordlg.h +++ b/include/wx/gtk/colordlg.h @@ -39,10 +39,11 @@ public: protected: // implement some base class methods to do nothing to avoid asserts and // GTK warnings, since this is not a real wxDialog. - virtual void DoSetSize(int x, int y, - int width, int height, - int sizeFlags = wxSIZE_AUTO) {} - virtual void DoMoveWindow(int x, int y, int width, int height) {} + virtual void DoSetSize(int WXUNUSED(x), int WXUNUSED(y), + int WXUNUSED(width), int WXUNUSED(height), + int WXUNUSED(sizeFlags) = wxSIZE_AUTO) {} + virtual void DoMoveWindow(int WXUNUSED(x), int WXUNUSED(y), + int WXUNUSED(width), int WXUNUSED(height)) {} // copy data between the dialog and m_colourData: void ColourDataToDialog(); diff --git a/include/wx/gtk/msgdlg.h b/include/wx/gtk/msgdlg.h index 7ca2daea90..1f142a6dce 100644 --- a/include/wx/gtk/msgdlg.h +++ b/include/wx/gtk/msgdlg.h @@ -33,15 +33,16 @@ public: const wxPoint& pos = wxDefaultPosition); int ShowModal(); - virtual bool Show( bool show = true ) { return false; }; + virtual bool Show( bool WXUNUSED(show) = true ) { return false; }; protected: // implement some base class methods to do nothing to avoid asserts and // GTK warnings, since this is not a real wxDialog. - virtual void DoSetSize(int x, int y, - int width, int height, - int sizeFlags = wxSIZE_AUTO) {} - virtual void DoMoveWindow(int x, int y, int width, int height) {} + virtual void DoSetSize(int WXUNUSED(x), int WXUNUSED(y), + int WXUNUSED(width), int WXUNUSED(height), + int WXUNUSED(sizeFlags) = wxSIZE_AUTO) {} + virtual void DoMoveWindow(int WXUNUSED(x), int WXUNUSED(y), + int WXUNUSED(width), int WXUNUSED(height)) {} private: wxString m_caption; diff --git a/include/wx/gtk1/colordlg.h b/include/wx/gtk1/colordlg.h index 9db85c55a2..3eb2f3afc7 100644 --- a/include/wx/gtk1/colordlg.h +++ b/include/wx/gtk1/colordlg.h @@ -39,10 +39,11 @@ public: protected: // implement some base class methods to do nothing to avoid asserts and // GTK warnings, since this is not a real wxDialog. - virtual void DoSetSize(int x, int y, - int width, int height, - int sizeFlags = wxSIZE_AUTO) {} - virtual void DoMoveWindow(int x, int y, int width, int height) {} + virtual void DoSetSize(int WXUNUSED(x), int WXUNUSED(y), + int WXUNUSED(width), int WXUNUSED(height), + int WXUNUSED(sizeFlags) = wxSIZE_AUTO) {} + virtual void DoMoveWindow(int WXUNUSED(x), int WXUNUSED(y), + int WXUNUSED(width), int WXUNUSED(height)) {} // copy data between the dialog and m_colourData: void ColourDataToDialog(); diff --git a/include/wx/gtk1/msgdlg.h b/include/wx/gtk1/msgdlg.h index 7ca2daea90..1f142a6dce 100644 --- a/include/wx/gtk1/msgdlg.h +++ b/include/wx/gtk1/msgdlg.h @@ -33,15 +33,16 @@ public: const wxPoint& pos = wxDefaultPosition); int ShowModal(); - virtual bool Show( bool show = true ) { return false; }; + virtual bool Show( bool WXUNUSED(show) = true ) { return false; }; protected: // implement some base class methods to do nothing to avoid asserts and // GTK warnings, since this is not a real wxDialog. - virtual void DoSetSize(int x, int y, - int width, int height, - int sizeFlags = wxSIZE_AUTO) {} - virtual void DoMoveWindow(int x, int y, int width, int height) {} + virtual void DoSetSize(int WXUNUSED(x), int WXUNUSED(y), + int WXUNUSED(width), int WXUNUSED(height), + int WXUNUSED(sizeFlags) = wxSIZE_AUTO) {} + virtual void DoMoveWindow(int WXUNUSED(x), int WXUNUSED(y), + int WXUNUSED(width), int WXUNUSED(height)) {} private: wxString m_caption;