From b427ad80f6b2525b765eeeb514e61ff009336f56 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Fri, 3 Feb 2023 15:28:53 +0100 Subject: [PATCH] Don't make unneeded copies of std::pairs --- pcbnew/zone_filler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/zone_filler.cpp b/pcbnew/zone_filler.cpp index 28060f9b32..6afcc0f83f 100644 --- a/pcbnew/zone_filler.cpp +++ b/pcbnew/zone_filler.cpp @@ -636,7 +636,7 @@ bool ZONE_FILLER::Fill( std::vector& aZones, bool aCheck, wxWindow* aPare if( ret.valid() ) { - for( auto action_item : ret.get() ) + for( auto& action_item : ret.get() ) action_item.first->DeletePolygonAndTriangulationData( action_item.second, true ); } }