Path: [skip ci] Fix several clazy issues:
* Missing reference in range-for with non trivial type [-Wclazy-range-loop-reference]
This commit is contained in:
@@ -210,7 +210,7 @@ Area::Area(const Area& other, bool deep_copy)
|
||||
myShape = other.myShape;
|
||||
myShapeDone = other.myShapeDone;
|
||||
mySections.reserve(other.mySections.size());
|
||||
for (shared_ptr<Area> area : other.mySections)
|
||||
for (const shared_ptr<Area>& area : other.mySections)
|
||||
mySections.push_back(make_shared<Area>(*area, true));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user