fixed variable shadowing icc warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35713 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -401,14 +401,14 @@ void wxToolBarBase::UnToggleRadioGroup(wxToolBarToolBase *tool)
|
||||
wxToolBarToolsList::compatibility_iterator nodeNext = node->GetNext();
|
||||
while ( nodeNext )
|
||||
{
|
||||
wxToolBarToolBase *tool = nodeNext->GetData();
|
||||
wxToolBarToolBase *toolNext = nodeNext->GetData();
|
||||
|
||||
if ( !tool->IsButton() || tool->GetKind() != wxITEM_RADIO )
|
||||
if ( !toolNext->IsButton() || toolNext->GetKind() != wxITEM_RADIO )
|
||||
break;
|
||||
|
||||
if ( tool->Toggle(false) )
|
||||
if ( toolNext->Toggle(false) )
|
||||
{
|
||||
DoToggleTool(tool, false);
|
||||
DoToggleTool(toolNext, false);
|
||||
}
|
||||
|
||||
nodeNext = nodeNext->GetNext();
|
||||
@@ -417,14 +417,14 @@ void wxToolBarBase::UnToggleRadioGroup(wxToolBarToolBase *tool)
|
||||
wxToolBarToolsList::compatibility_iterator nodePrev = node->GetPrevious();
|
||||
while ( nodePrev )
|
||||
{
|
||||
wxToolBarToolBase *tool = nodePrev->GetData();
|
||||
wxToolBarToolBase *toolNext = nodePrev->GetData();
|
||||
|
||||
if ( !tool->IsButton() || tool->GetKind() != wxITEM_RADIO )
|
||||
if ( !toolNext->IsButton() || toolNext->GetKind() != wxITEM_RADIO )
|
||||
break;
|
||||
|
||||
if ( tool->Toggle(false) )
|
||||
if ( toolNext->Toggle(false) )
|
||||
{
|
||||
DoToggleTool(tool, false);
|
||||
DoToggleTool(toolNext, false);
|
||||
}
|
||||
|
||||
nodePrev = nodePrev->GetPrevious();
|
||||
|
Reference in New Issue
Block a user