corrected warnings for unused parameters

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15932 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Gilles Depeyrot 2002-06-23 17:09:04 +00:00
parent f9b170bd18
commit d208e6412a
2 changed files with 12 additions and 12 deletions

View File

@ -217,7 +217,7 @@ void wxDialog::EndModal(int retCode)
}
// Standard buttons
void wxDialog::OnOK(wxCommandEvent& event)
void wxDialog::OnOK(wxCommandEvent& WXUNUSED(event))
{
if ( Validate() && TransferDataFromWindow() )
{
@ -225,19 +225,19 @@ void wxDialog::OnOK(wxCommandEvent& event)
}
}
void wxDialog::OnApply(wxCommandEvent& event)
void wxDialog::OnApply(wxCommandEvent& WXUNUSED(event))
{
if (Validate())
TransferDataFromWindow();
// TODO probably need to disable the Apply button until things change again
}
void wxDialog::OnCancel(wxCommandEvent& event)
void wxDialog::OnCancel(wxCommandEvent& WXUNUSED(event))
{
EndModal(wxID_CANCEL);
EndModal(wxID_CANCEL);
}
void wxDialog::OnCloseWindow(wxCloseEvent& event)
void wxDialog::OnCloseWindow(wxCloseEvent& WXUNUSED(event))
{
// We'll send a Cancel message by default,
// which may close the dialog.
@ -267,7 +267,7 @@ void wxDialog::OnCloseWindow(wxCloseEvent& event)
closing.DeleteObject(this);
}
void wxDialog::OnSysColourChanged(wxSysColourChangedEvent& event)
void wxDialog::OnSysColourChanged(wxSysColourChangedEvent& WXUNUSED(event))
{
SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE));
Refresh();

View File

@ -217,7 +217,7 @@ void wxDialog::EndModal(int retCode)
}
// Standard buttons
void wxDialog::OnOK(wxCommandEvent& event)
void wxDialog::OnOK(wxCommandEvent& WXUNUSED(event))
{
if ( Validate() && TransferDataFromWindow() )
{
@ -225,19 +225,19 @@ void wxDialog::OnOK(wxCommandEvent& event)
}
}
void wxDialog::OnApply(wxCommandEvent& event)
void wxDialog::OnApply(wxCommandEvent& WXUNUSED(event))
{
if (Validate())
TransferDataFromWindow();
// TODO probably need to disable the Apply button until things change again
}
void wxDialog::OnCancel(wxCommandEvent& event)
void wxDialog::OnCancel(wxCommandEvent& WXUNUSED(event))
{
EndModal(wxID_CANCEL);
EndModal(wxID_CANCEL);
}
void wxDialog::OnCloseWindow(wxCloseEvent& event)
void wxDialog::OnCloseWindow(wxCloseEvent& WXUNUSED(event))
{
// We'll send a Cancel message by default,
// which may close the dialog.
@ -267,7 +267,7 @@ void wxDialog::OnCloseWindow(wxCloseEvent& event)
closing.DeleteObject(this);
}
void wxDialog::OnSysColourChanged(wxSysColourChangedEvent& event)
void wxDialog::OnSysColourChanged(wxSysColourChangedEvent& WXUNUSED(event))
{
SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE));
Refresh();