Sketcher: 532658 Use of auto that causes a copy
Also fixes 532658
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user