From dbad85d40599ab2b2dd71c30bc986137572ec1cd Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 6 Nov 2021 11:28:53 +0000 Subject: [PATCH] Remove instances of "auto". --- .../dialog_global_edit_tracks_and_vias.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pcbnew/dialogs/dialog_global_edit_tracks_and_vias.cpp b/pcbnew/dialogs/dialog_global_edit_tracks_and_vias.cpp index bdd4204ba8..a56e28e73b 100644 --- a/pcbnew/dialogs/dialog_global_edit_tracks_and_vias.cpp +++ b/pcbnew/dialogs/dialog_global_edit_tracks_and_vias.cpp @@ -217,7 +217,7 @@ void DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::buildNetclassesGrid() int row = 2; - for( const auto& netclass : netclasses ) + for( const std::pair>& netclass : netclasses ) { m_netclassGrid->SetCellValue( row, GRID_NAME, netclass.first ); SET_NETCLASS_VALUE( row, GRID_TRACKSIZE, netclass.second->GetTrackWidth() ); @@ -370,20 +370,20 @@ bool DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::TransferDataFromWindow() wxBusyCursor dummy; // Examine segments - for( auto segment : m_brd->Tracks() ) + for( PCB_TRACK* track : m_brd->Tracks() ) { - if( m_tracks->GetValue() && segment->Type() == PCB_TRACE_T ) - visitItem( &itemsListPicker, segment ); - else if (m_vias->GetValue() && segment->Type() == PCB_VIA_T ) - visitItem( &itemsListPicker, segment ); + if( m_tracks->GetValue() && track->Type() == PCB_TRACE_T ) + visitItem( &itemsListPicker, track ); + else if ( m_vias->GetValue() && track->Type() == PCB_VIA_T ) + visitItem( &itemsListPicker, track ); } if( itemsListPicker.GetCount() > 0 ) { m_parent->SaveCopyInUndoList( itemsListPicker, UNDO_REDO::CHANGED ); - for( auto segment : m_brd->Tracks() ) - m_parent->GetCanvas()->GetView()->Update( segment ); + for( PCB_TRACK* track : m_brd->Tracks() ) + m_parent->GetCanvas()->GetView()->Update( track ); } return true;