Sketcher: Fix 463717 Variable copied when it could be moved

This commit is contained in:
Benjamin Nauck
2025-04-11 08:27:23 +02:00
parent c0e03c42da
commit 2afc6bfeb8

View File

@@ -11072,7 +11072,7 @@ std::vector<const char *> SketchObject::getElementTypes(bool all) const
void SketchObject::setExpression(const App::ObjectIdentifier& path,
std::shared_ptr<App::Expression> expr)
{
DocumentObject::setExpression(path, expr);
DocumentObject::setExpression(path, std::move(expr));
if (noRecomputes) {
// if we do not have a recompute, the sketch must be solved to update the DoF of the solver,