From 12cca26a83405b5f7f29ce2c44c5f965d07ceafc Mon Sep 17 00:00:00 2001 From: =?utf8?q?W=C5=82odzimierz=20Skiba?= Date: Tue, 31 May 2005 11:58:04 +0000 Subject: [PATCH] Warning fix. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34446 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/motif/menu.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/motif/menu.cpp b/src/motif/menu.cpp index c2d975ae6e..123a04b0cb 100644 --- a/src/motif/menu.cpp +++ b/src/motif/menu.cpp @@ -81,7 +81,7 @@ void wxMenu::Init() m_topLevelMenu = (wxMenu*) NULL; m_ownedByMenuBar = false; - if ( !!m_title ) + if ( !m_title.empty() ) { Append(-3, m_title) ; AppendSeparator() ; @@ -211,12 +211,12 @@ void wxMenuBar::Init() wxMenuBar::wxMenuBar(size_t n, wxMenu *menus[], const wxArrayString& titles, long WXUNUSED(style)) { - wxASSERT( size_t(n) == titles.GetCount() ); + wxASSERT( n == titles.GetCount() ); Init(); m_titles = titles; - for ( int i = 0; i < n; i++ ) + for ( size_t i = 0; i < n; i++ ) m_menus.Append(menus[i]); } -- 2.45.2