Don't make unneeded copies of std::pairs
This commit is contained in:
parent
dde336ee40
commit
b427ad80f6
|
@ -636,7 +636,7 @@ bool ZONE_FILLER::Fill( std::vector<ZONE*>& aZones, bool aCheck, wxWindow* aPare
|
||||||
|
|
||||||
if( ret.valid() )
|
if( ret.valid() )
|
||||||
{
|
{
|
||||||
for( auto action_item : ret.get() )
|
for( auto& action_item : ret.get() )
|
||||||
action_item.first->DeletePolygonAndTriangulationData( action_item.second, true );
|
action_item.first->DeletePolygonAndTriangulationData( action_item.second, true );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue