fixed compilation warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21210 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
afc5159044
commit
20aed02647
@ -523,11 +523,10 @@ wxMenuItem *wxMenuBase::FindChildItem(int id, size_t *ppos) const
|
||||
// find by position
|
||||
wxMenuItem* wxMenuBase::FindItemByPosition(size_t position) const
|
||||
{
|
||||
wxASSERT ( position > -1 && position < m_items.GetCount() );
|
||||
if ( position > -1 && position < m_items.GetCount() )
|
||||
return m_items.Item( position )->GetData();
|
||||
else
|
||||
return NULL;
|
||||
wxCHECK_MSG( position < m_items.GetCount(), NULL,
|
||||
_T("wxMenu::FindItemByPosition(): invalid menu index") );
|
||||
|
||||
return m_items.Item( position )->GetData();
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user