From 2f594e441b239360ba6b79ec17b9135c601db96d Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Fri, 10 Nov 2023 10:31:40 +0100 Subject: [PATCH] Fix a compil warning (shadowed variable). --- pcbnew/tools/pcb_selection_tool.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcbnew/tools/pcb_selection_tool.cpp b/pcbnew/tools/pcb_selection_tool.cpp index 2956d1aed8..64087dfdf3 100644 --- a/pcbnew/tools/pcb_selection_tool.cpp +++ b/pcbnew/tools/pcb_selection_tool.cpp @@ -644,9 +644,9 @@ PCB_SELECTION& PCB_SELECTION_TOOL::RequestSelection( CLIENT_SELECTION_FILTER aCl bool lockedDescendant = false; boardItem->RunOnDescendants( - [&]( BOARD_ITEM* item ) + [&]( BOARD_ITEM* curr_item ) { - if( item->IsLocked() ) + if( curr_item->IsLocked() ) lockedDescendant = true; } );