Sketcher: Fix 513105 Variable copied when it could be moved

This commit is contained in:
Benjamin Nauck
2025-04-11 08:35:36 +02:00
parent 3998f498a4
commit d202f89f2c

View File

@@ -11589,7 +11589,7 @@ int SketchObject::renameConstraint(int GeoId, std::string name)
Base::StateLocker lock(managedoperation, true);
Constraint* copy = item->clone();
copy->Name = name;
copy->Name = std::move(name);
Constraints.set1Value(GeoId, copy);
delete copy;