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:
wmayer
2022-07-25 12:21:32 +02:00
parent e403b9ce55
commit 832717e446
3 changed files with 5 additions and 5 deletions

View File

@@ -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));
}