Fix shadowing warning

This commit is contained in:
Jon Evans 2020-01-03 18:52:46 -05:00
parent ea218bc722
commit d5a80e9cfd
1 changed files with 2 additions and 2 deletions

View File

@ -196,9 +196,9 @@ bool SCH_EDIT_TOOL::Init()
{
const std::deque<EDA_ITEM*> items = aSel.GetItems();
if( !std::all_of( items.begin(), items.end(),
[&]( const EDA_ITEM* item )
[&]( const EDA_ITEM* selItem )
{
const SCH_LINE* line = dynamic_cast<const SCH_LINE*>( item );
const SCH_LINE* line = dynamic_cast<const SCH_LINE*>( selItem );
if ( line == nullptr )
{
wxLogWarning(