diff --git a/eeschema/connection_graph.cpp b/eeschema/connection_graph.cpp index 3f43dbb7e0..1716cc6fa0 100644 --- a/eeschema/connection_graph.cpp +++ b/eeschema/connection_graph.cpp @@ -752,9 +752,9 @@ void CONNECTION_GRAPH::Recalculate( const SCH_SHEET_LIST& aSheetList, bool aUnco } else if( item->Type() == SCH_SHEET_T ) { - SCH_SHEET* sheet = static_cast( item ); + SCH_SHEET* sheetItem = static_cast( item ); - for( SCH_SHEET_PIN* pin : sheet->GetPins() ) + for( SCH_SHEET_PIN* pin : sheetItem->GetPins() ) { if( pin->IsConnectivityDirty() ) {