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 de17a7acee
commit 7f49a4e668

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;