Fix unused variable and parameter warnings in samples
These variables are only used in debug builds, causing warnings in release builds.
This commit is contained in:
@@ -1375,6 +1375,7 @@ void MyFrame::OnNotebookPageClose(wxAuiNotebookEvent& evt)
|
|||||||
void MyFrame::OnNotebookPageClosed(wxAuiNotebookEvent& evt)
|
void MyFrame::OnNotebookPageClosed(wxAuiNotebookEvent& evt)
|
||||||
{
|
{
|
||||||
wxAuiNotebook* ctrl = (wxAuiNotebook*)evt.GetEventObject();
|
wxAuiNotebook* ctrl = (wxAuiNotebook*)evt.GetEventObject();
|
||||||
|
wxUnusedVar(ctrl);
|
||||||
|
|
||||||
// selection should always be a valid index
|
// selection should always be a valid index
|
||||||
wxASSERT_MSG( ctrl->GetSelection() < (int)ctrl->GetPageCount(),
|
wxASSERT_MSG( ctrl->GetSelection() < (int)ctrl->GetPageCount(),
|
||||||
|
@@ -912,6 +912,7 @@ void FormMain::OnPropertyGridColDragging( wxPropertyGridEvent& event )
|
|||||||
|
|
||||||
void FormMain::OnPropertyGridColEndDrag( wxPropertyGridEvent& event )
|
void FormMain::OnPropertyGridColEndDrag( wxPropertyGridEvent& event )
|
||||||
{
|
{
|
||||||
|
wxUnusedVar(event);
|
||||||
wxLogDebug(wxT("Splitter %i resize ended"), event.GetColumn());
|
wxLogDebug(wxT("Splitter %i resize ended"), event.GetColumn());
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1788,6 +1789,7 @@ wxEND_EVENT_TABLE()
|
|||||||
void wxMyPropertyGridPage::OnPropertySelect( wxPropertyGridEvent& event )
|
void wxMyPropertyGridPage::OnPropertySelect( wxPropertyGridEvent& event )
|
||||||
{
|
{
|
||||||
wxPGProperty* p = event.GetProperty();
|
wxPGProperty* p = event.GetProperty();
|
||||||
|
wxUnusedVar(p);
|
||||||
wxLogDebug(wxT("wxMyPropertyGridPage::OnPropertySelect('%s' is %s"),
|
wxLogDebug(wxT("wxMyPropertyGridPage::OnPropertySelect('%s' is %s"),
|
||||||
p->GetName().c_str(),
|
p->GetName().c_str(),
|
||||||
IsPropertySelected(p)? wxT("selected"): wxT("unselected"));
|
IsPropertySelected(p)? wxT("selected"): wxT("unselected"));
|
||||||
|
Reference in New Issue
Block a user