Fix harmless warnings about hiding base class virtual in dialogs sample.

GetTitle() added in r71213 resulted in virtual function warnings from g++, fix
them by renaming it to GetBoxTitle().

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71302 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2012-04-28 22:24:50 +00:00
parent a55602fafa
commit c8648b64a6
2 changed files with 3 additions and 3 deletions

View File

@@ -3143,7 +3143,7 @@ void TestMessageBoxDialog::PrepareMessageDialog(wxMessageDialogBase &dlg)
void TestMessageBoxDialog::OnApply(wxCommandEvent& WXUNUSED(event)) void TestMessageBoxDialog::OnApply(wxCommandEvent& WXUNUSED(event))
{ {
wxMessageDialog dlg(this, GetMessage(), GetTitle(), GetStyle()); wxMessageDialog dlg(this, GetMessage(), GetBoxTitle(), GetStyle());
PrepareMessageDialog(dlg); PrepareMessageDialog(dlg);
wxString btnName; wxString btnName;
@@ -3231,7 +3231,7 @@ void TestRichMessageDialog::AddAdditionalFlags(wxSizer *sizer)
void TestRichMessageDialog::OnApply(wxCommandEvent& WXUNUSED(event)) void TestRichMessageDialog::OnApply(wxCommandEvent& WXUNUSED(event))
{ {
wxRichMessageDialog dlg(this, GetMessage(), GetTitle(), GetStyle()); wxRichMessageDialog dlg(this, GetMessage(), GetBoxTitle(), GetStyle());
PrepareMessageDialog(dlg); PrepareMessageDialog(dlg);
dlg.ShowCheckBox(m_textCheckBox->GetValue(), dlg.ShowCheckBox(m_textCheckBox->GetValue(),

View File

@@ -208,7 +208,7 @@ public:
bool Create(); bool Create();
protected: protected:
wxString GetTitle() { return m_textTitle->GetValue(); } wxString GetBoxTitle() { return m_textTitle->GetValue(); }
wxString GetMessage() { return m_textMsg->GetValue(); } wxString GetMessage() { return m_textMsg->GetValue(); }
long GetStyle(); long GetStyle();