X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1c83cdc9205a794ff86be710bd8ab65951990a67..a2a0d40dacaabcfe2018fdd3408a6cd8d892386a:/src/os2/menuitem.cpp diff --git a/src/os2/menuitem.cpp b/src/os2/menuitem.cpp index a5a809c051..9b9143b352 100644 --- a/src/os2/menuitem.cpp +++ b/src/os2/menuitem.cpp @@ -13,6 +13,10 @@ // headers & declarations // ============================================================================ +#ifdef __GNUG__ + #pragma implementation "menuitem.h" +#endif + // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -76,9 +80,9 @@ wxMenuItem::wxMenuItem(wxMenu *pParentMenu, const wxString& text, const wxString& strHelp, bool bCheckable, - wxMenu *pSubMenu) : + wxMenu *pSubMenu) #if wxUSE_OWNER_DRAWN - wxOwnerDrawn(text, bCheckable) + : wxOwnerDrawn(text, bCheckable) #endif // owner drawn { wxASSERT_MSG( pParentMenu != NULL, wxT("a menu item should have a parent") ); @@ -133,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