Sketcher: 532658 Use of auto that causes a copy

Also fixes 532658
This commit is contained in:
Benjamin Nauck
2025-04-11 08:31:59 +02:00
parent 05a4fb1bc3
commit 3998f498a4

View File

@@ -1935,7 +1935,7 @@ int SketchObject::delGeometriesExclusiveList(const std::vector<int>& GeoIds)
void SketchObject::replaceGeometries(std::vector<int> oldGeoIds,
std::vector<Part::Geometry*>& newGeos)
{
auto vals = getInternalGeometry();
auto& vals = getInternalGeometry();
auto newVals(vals);
if (std::any_of(oldGeoIds.begin(), oldGeoIds.end(), [](auto geoId) {