diff --git a/include/wx/os2/menuitem.h b/include/wx/os2/menuitem.h index 3aecc077cf..f9ebaf8659 100644 --- a/include/wx/os2/menuitem.h +++ b/include/wx/os2/menuitem.h @@ -50,7 +50,6 @@ public: // override base class virtuals virtual void SetText(const wxString& strName); - virtual wxString GetLabel() const; virtual void SetCheckable(bool checkable); virtual void Enable(bool bDoEnable = TRUE); diff --git a/src/os2/menuitem.cpp b/src/os2/menuitem.cpp index 6382eaa1d4..9b9143b352 100644 --- a/src/os2/menuitem.cpp +++ b/src/os2/menuitem.cpp @@ -137,9 +137,9 @@ bool wxMenuItem::IsChecked() const return FALSE; } -wxString wxMenuItem::GetLabel() const +wxString wxMenuItemBase::GetLabelFromText(const wxString& text) { - return wxStripMenuCodes(m_text); + return wxStripMenuCodes(text); } // accelerators