X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b022169511792a75b3ae7fed895ea88d30e64af..7e4fb3b8168f4f2dbf2f8a246d3e094a8ccba194:/src/common/framecmn.cpp?ds=sidebyside diff --git a/src/common/framecmn.cpp b/src/common/framecmn.cpp index 0020580068..995bf80b19 100644 --- a/src/common/framecmn.cpp +++ b/src/common/framecmn.cpp @@ -276,7 +276,7 @@ void wxFrameBase::OnMenuOpen(wxMenuEvent& WXUNUSED(event)) void wxFrameBase::OnMenuClose(wxMenuEvent& WXUNUSED(event)) { // do we have real status text to restore? - if ( m_oldStatusText.length() > 1 || m_oldStatusText[0u] ) + if ( !m_oldStatusText.empty() ) { if ( m_statusBarPane >= 0 ) { @@ -387,7 +387,7 @@ bool wxFrameBase::ShowMenuHelp(wxStatusBar *WXUNUSED(statbar), int menuId) DoGiveHelp(helpString, show); - return !helpString.IsEmpty(); + return !helpString.empty(); #else // !wxUSE_MENUS return false; #endif // wxUSE_MENUS/!wxUSE_MENUS @@ -563,3 +563,12 @@ void wxFrameBase::SetMenuBar(wxMenuBar *menubar) } #endif // wxUSE_MENUS + +#if WXWIN_COMPATIBILITY_2_2 + +bool wxFrameBase::Command(int winid) +{ + return ProcessCommand(winid); +} + +#endif // WXWIN_COMPATIBILITY_2_2