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:
@@ -523,11 +523,10 @@ wxMenuItem *wxMenuBase::FindChildItem(int id, size_t *ppos) const
|
|||||||
// find by position
|
// find by position
|
||||||
wxMenuItem* wxMenuBase::FindItemByPosition(size_t position) const
|
wxMenuItem* wxMenuBase::FindItemByPosition(size_t position) const
|
||||||
{
|
{
|
||||||
wxASSERT ( position > -1 && position < m_items.GetCount() );
|
wxCHECK_MSG( position < m_items.GetCount(), NULL,
|
||||||
if ( position > -1 && position < m_items.GetCount() )
|
_T("wxMenu::FindItemByPosition(): invalid menu index") );
|
||||||
return m_items.Item( position )->GetData();
|
|
||||||
else
|
return m_items.Item( position )->GetData();
|
||||||
return NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user