]> git.saurik.com Git - wxWidgets.git/commitdiff
replaced a weird (and wrong when wxUSE_STL == 1) test for string being empty with...
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 31 Jan 2005 22:08:33 +0000 (22:08 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 31 Jan 2005 22:08:33 +0000 (22:08 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31680 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/framecmn.cpp

index 017c25578c2bb6b9a0a6d020caccf218d352ba6f..995bf80b194e3087a4d181acb4278604817fb49c 100644 (file)
@@ -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 )
         {