Sketcher: Fix 513269 Variable copied when it could be moved

This commit is contained in:
Benjamin Nauck
2025-05-03 23:38:05 +02:00
parent 47a43e21b2
commit 3f79626799
+1 -1
View File
@@ -7083,7 +7083,7 @@ int SketchObject::carbonCopy(App::DocumentObject* pObj, bool construction)
*
* if (expr_info.expression)*/
// App::Expression * expr = parse(this, const std::string& buffer);
setExpression(Constraints.createPath(nextcid), expr);
setExpression(Constraints.createPath(nextcid), std::move(expr));
}
}
}