Warning fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34446 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -81,7 +81,7 @@ void wxMenu::Init()
|
|||||||
m_topLevelMenu = (wxMenu*) NULL;
|
m_topLevelMenu = (wxMenu*) NULL;
|
||||||
m_ownedByMenuBar = false;
|
m_ownedByMenuBar = false;
|
||||||
|
|
||||||
if ( !!m_title )
|
if ( !m_title.empty() )
|
||||||
{
|
{
|
||||||
Append(-3, m_title) ;
|
Append(-3, m_title) ;
|
||||||
AppendSeparator() ;
|
AppendSeparator() ;
|
||||||
@@ -211,12 +211,12 @@ void wxMenuBar::Init()
|
|||||||
|
|
||||||
wxMenuBar::wxMenuBar(size_t n, wxMenu *menus[], const wxArrayString& titles, long WXUNUSED(style))
|
wxMenuBar::wxMenuBar(size_t n, wxMenu *menus[], const wxArrayString& titles, long WXUNUSED(style))
|
||||||
{
|
{
|
||||||
wxASSERT( size_t(n) == titles.GetCount() );
|
wxASSERT( n == titles.GetCount() );
|
||||||
|
|
||||||
Init();
|
Init();
|
||||||
|
|
||||||
m_titles = titles;
|
m_titles = titles;
|
||||||
for ( int i = 0; i < n; i++ )
|
for ( size_t i = 0; i < n; i++ )
|
||||||
m_menus.Append(menus[i]);
|
m_menus.Append(menus[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user