From b938df0e46919a365c6c7263db6d9780e4dada17 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Tue, 23 Feb 2021 12:49:02 +0000 Subject: [PATCH] Coding policy. --- eeschema/bus-wire-junction.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/eeschema/bus-wire-junction.cpp b/eeschema/bus-wire-junction.cpp index 9b7f920e3e..a1d458ba1d 100644 --- a/eeschema/bus-wire-junction.cpp +++ b/eeschema/bus-wire-junction.cpp @@ -45,7 +45,7 @@ std::vector SCH_EDIT_FRAME::GetSchematicConnections() { std::vector retval; - for( auto item : GetScreen()->Items() ) + for( SCH_ITEM* item : GetScreen()->Items() ) { // Avoid items that are changing if( !( item->GetEditFlags() & ( IS_DRAGGED | IS_MOVED | IS_DELETED ) ) ) @@ -277,7 +277,7 @@ bool SCH_EDIT_FRAME::SchematicCleanUp( SCH_SCREEN* aScreen ) } } - for( auto item : deletedItems ) + for( SCH_ITEM* item : deletedItems ) { if( item->IsSelected() ) selectionTool->RemoveItemFromSel( item, true /*quiet mode*/ ); @@ -326,7 +326,7 @@ bool SCH_EDIT_FRAME::BreakSegments( const wxPoint& aPoint, SCH_SCREEN* aScreen ) bool brokenSegments = false; std::vector wires; - for( auto item : aScreen->Items().Overlapping( SCH_LINE_T, aPoint ) ) + for( SCH_ITEM* item : aScreen->Items().Overlapping( SCH_LINE_T, aPoint ) ) { if( item->IsType( wiresAndBuses ) ) { @@ -340,7 +340,7 @@ bool SCH_EDIT_FRAME::BreakSegments( const wxPoint& aPoint, SCH_SCREEN* aScreen ) } } - for( auto wire : wires ) + for( SCH_LINE* wire : wires ) brokenSegments |= BreakSegment( wire, aPoint, NULL, aScreen ); return brokenSegments; @@ -367,7 +367,7 @@ bool SCH_EDIT_FRAME::BreakSegmentsOnJunctions( SCH_SCREEN* aScreen ) } - for( auto pt : point_set ) + for( const wxPoint& pt : point_set ) brokenSegments |= BreakSegments( pt, aScreen ); return brokenSegments; @@ -439,7 +439,7 @@ void SCH_EDIT_FRAME::DeleteJunction( SCH_ITEM* aJunction, bool aAppend ) SaveCopyInUndoList( undoList, UNDO_REDO::DELETED, aAppend ); - for( auto line : lines ) + for( SCH_LINE* line : lines ) { if( line->GetEditFlags() & STRUCT_DELETED ) { @@ -468,7 +468,7 @@ SCH_JUNCTION* SCH_EDIT_FRAME::AddJunction( SCH_SCREEN* aScreen, const wxPoint& a TestDanglingEnds(); OnModify(); - auto view = GetCanvas()->GetView(); + KIGFX::SCH_VIEW* view = GetCanvas()->GetView(); view->ClearPreview(); view->ShowPreview( false ); view->ClearHiddenFlags();