Fix harmless parameter shadowing warnings

Rename local variables to avoid clashes with the function parameters.

Closes #17343, #17344.
This commit is contained in:
pb101
2016-01-22 14:41:23 +01:00
committed by Vadim Zeitlin
parent 78b19e6811
commit a03df746f0
2 changed files with 7 additions and 7 deletions

View File

@@ -633,14 +633,14 @@ bool wxToolBar::DoDeleteTool(size_t pos, wxToolBarToolBase *tool)
wxToolBarToolsList::compatibility_iterator node;
for ( node = m_tools.Find(tool); node; node = node->GetNext() )
{
wxToolBarTool * const tool = static_cast<wxToolBarTool*>(node->GetData());
wxToolBarTool * const ctool = static_cast<wxToolBarTool*>(node->GetData());
if ( tool->IsToBeDeleted() )
if ( ctool->IsToBeDeleted() )
continue;
if ( tool->IsControl() )
if ( ctool->IsControl() )
{
tool->MoveBy(-delta);
ctool->MoveBy(-delta);
}
}