From: Włodzimierz Skiba Date: Tue, 1 Mar 2005 11:54:44 +0000 (+0000) Subject: Warning fix. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/226e5774037000d179b99de56b14666ae2e26f31 Warning fix. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32531 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/wizard/wizard.cpp b/samples/wizard/wizard.cpp index 97bd411243..97b82ab7f1 100644 --- a/samples/wizard/wizard.cpp +++ b/samples/wizard/wizard.cpp @@ -104,7 +104,7 @@ public: m_bitmap = wxBITMAP(wiztest2); m_checkbox = new wxCheckBox(this, wxID_ANY, _T("&Check me")); - + wxBoxSizer *mainSizer = new wxBoxSizer(wxVERTICAL); mainSizer->Add( new wxStaticText(this, wxID_ANY, @@ -170,7 +170,7 @@ public: WXSIZEOF(choices), choices, 1, wxRA_SPECIFY_COLS); m_radio->SetSelection(Both); - + wxBoxSizer *mainSizer = new wxBoxSizer(wxVERTICAL); mainSizer->Add( m_radio, @@ -178,7 +178,7 @@ public: wxALL, 5 // Border ); - + SetSizer(mainSizer); mainSizer->Fit(this); } @@ -230,7 +230,7 @@ public: { m_prev = prev; m_next = next; - + wxBoxSizer *mainSizer = new wxBoxSizer(wxVERTICAL); mainSizer->Add( @@ -255,9 +255,9 @@ public: unsigned int ui; for ( ui = 0; ui < WXSIZEOF(aszChoices); ui++ ) astrChoices[ui] = aszChoices[ui]; - m_checklistbox = new wxCheckListBox(this, wxID_ANY, wxDefaultPosition, wxSize(100,100), + m_checklistbox = new wxCheckListBox(this, wxID_ANY, wxDefaultPosition, wxSize(100,100), WXSIZEOF(aszChoices), astrChoices); - + mainSizer->Add( m_checklistbox, 0, // No vertical stretching @@ -265,7 +265,7 @@ public: 5 // Border width ); - + SetSizer(mainSizer); mainSizer->Fit(this); } @@ -379,7 +379,8 @@ void MyFrame::OnRunWizard(wxCommandEvent& WXUNUSED(event)) // a wizard page may be either an object of predefined class wxWizardPageSimple *page1 = new wxWizardPageSimple(wizard); - wxStaticText *text = new wxStaticText(page1, wxID_ANY, + + /* wxStaticText *text = */ new wxStaticText(page1, wxID_ANY, _T("This wizard doesn't help you\nto do anything at all.\n") _T("\n") _T("The next pages will present you\nwith more useless controls."), @@ -402,7 +403,7 @@ void MyFrame::OnRunWizard(wxCommandEvent& WXUNUSED(event)) // allow the wizard to size itself around the pages wizard->GetPageAreaSizer()->Add(page1); - + if ( wizard->RunWizard(page1) ) { wxMessageBox(_T("The wizard successfully completed"), _T("That's all"),