Sketcher: Fix 513269 Variable copied when it could be moved

This commit is contained in:
Benjamin Nauck
2025-04-11 09:12:16 +02:00
parent 47a43e21b2
commit 3f79626799

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));
}
}
}