use a slightly less ugly way to conditionally suppress unused parameter warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57216 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -229,13 +229,7 @@ void MyFrame::OnNewWindow(wxCommandEvent& WXUNUSED(event) )
|
|||||||
subframe->Show(true);
|
subframe->Show(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MyFrame::OnSize(wxSizeEvent&
|
void MyFrame::OnSize(wxSizeEvent& event)
|
||||||
#ifdef __WXUNIVERSAL__
|
|
||||||
event
|
|
||||||
#else
|
|
||||||
WXUNUSED(event)
|
|
||||||
#endif
|
|
||||||
)
|
|
||||||
{
|
{
|
||||||
int w, h;
|
int w, h;
|
||||||
GetClientSize(&w, &h);
|
GetClientSize(&w, &h);
|
||||||
@@ -248,6 +242,8 @@ void MyFrame::OnSize(wxSizeEvent&
|
|||||||
// be done.
|
// be done.
|
||||||
#ifdef __WXUNIVERSAL__
|
#ifdef __WXUNIVERSAL__
|
||||||
event.Skip();
|
event.Skip();
|
||||||
|
#else
|
||||||
|
wxUnusedVar(event);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user