From 7335c5a58831db711a348edce9bed7ebfecc068d Mon Sep 17 00:00:00 2001 From: Gilles Depeyrot Date: Sat, 8 Sep 2001 19:15:26 +0000 Subject: [PATCH] corrected creation of wxWizard (wxWizardBase::Create class function is hidden by wxWizard::Create object method) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11574 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/wizard/wizard.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/samples/wizard/wizard.cpp b/samples/wizard/wizard.cpp index c405271857..5268716caa 100644 --- a/samples/wizard/wizard.cpp +++ b/samples/wizard/wizard.cpp @@ -313,10 +313,10 @@ void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event)) void MyFrame::OnRunWizard(wxCommandEvent& WXUNUSED(event)) { - wxWizard *wizard = wxWizard::Create(this, -1, - "Absolutely Useless Wizard", - BMP_WIZARD_1); - + wxWizard *wizard = new wxWizard(this, -1, + "Absolutely Useless Wizard", + BMP_WIZARD_1); + // a wizard page may be either an object of predefined class wxWizardPageSimple *page1 = new wxWizardPageSimple(wizard); wxStaticText *text = new wxStaticText(page1, -1, -- 2.45.2