Fix harmless warning about unused variable in wxMSW wxMenu
A variable was unused in wxDEBUG_LEVEL==0 build and assigning to it resulted in a warning. Fix this by not defining this variable at all, which also makes the check more clear.
This commit is contained in:
parent
5cfaf2f898
commit
ecdc7c3442
1 changed files with 6 additions and 4 deletions
|
|
@ -738,10 +738,12 @@ wxMenuItem *wxMenu::DoRemove(wxMenuItem *item)
|
|||
// Update indices of radio groups.
|
||||
if ( m_radioData )
|
||||
{
|
||||
bool inExistingGroup = m_radioData->UpdateOnRemoveItem(pos);
|
||||
|
||||
wxASSERT_MSG( !inExistingGroup || item->GetKind() == wxITEM_RADIO,
|
||||
wxT("Removing non radio button from radio group?") );
|
||||
if ( m_radioData->UpdateOnRemoveItem(pos) )
|
||||
{
|
||||
wxASSERT_MSG( item->GetKind() == wxITEM_RADIO,
|
||||
wxT("Removing non radio button from radio group?") );
|
||||
}
|
||||
//else: item being removed is not in a radio group
|
||||
}
|
||||
|
||||
// remove the item from the menu
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue