]> git.saurik.com Git - wxWidgets.git/commitdiff
use a slightly less ugly way to conditionally suppress unused parameter warnings
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 9 Dec 2008 13:36:23 +0000 (13:36 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 9 Dec 2008 13:36:23 +0000 (13:36 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57216 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/mdi/mdi.cpp

index f923e543dab9e18682bcc5e6f9d566b8a76d3153..047adfa6eb2c95104e2c1be2331c2153c4d00162 100644 (file)
@@ -229,13 +229,7 @@ void MyFrame::OnNewWindow(wxCommandEvent& WXUNUSED(event) )
     subframe->Show(true);
 }
 
-void MyFrame::OnSize(wxSizeEvent&
-                                  #ifdef __WXUNIVERSAL__
-                                  event
-                                  #else
-                                  WXUNUSED(event)
-                                  #endif
-                                  )
+void MyFrame::OnSize(wxSizeEvent& event)
 {
     int w, h;
     GetClientSize(&w, &h);
@@ -248,6 +242,8 @@ void MyFrame::OnSize(wxSizeEvent&
     // be done.
 #ifdef __WXUNIVERSAL__
     event.Skip();
+#else
+    wxUnusedVar(event);
 #endif
 }