From d5a80e9cfdb3339c0e80fd6aa141e30535727acc Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Fri, 3 Jan 2020 18:52:46 -0500 Subject: [PATCH] Fix shadowing warning --- eeschema/tools/sch_edit_tool.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eeschema/tools/sch_edit_tool.cpp b/eeschema/tools/sch_edit_tool.cpp index 3923dec6c1..0ddebf3066 100644 --- a/eeschema/tools/sch_edit_tool.cpp +++ b/eeschema/tools/sch_edit_tool.cpp @@ -196,9 +196,9 @@ bool SCH_EDIT_TOOL::Init() { const std::deque 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( item ); + const SCH_LINE* line = dynamic_cast( selItem ); if ( line == nullptr ) { wxLogWarning(