From 79e2d2f08d769d24cf0109cf71ef3b7ea56c63d5 Mon Sep 17 00:00:00 2001 From: Benjamin Nauck Date: Fri, 11 Apr 2025 08:28:48 +0200 Subject: [PATCH] Sketcher: Fix 512831 Variable copied when it could be moved --- src/Mod/Sketcher/App/SketchObject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Sketcher/App/SketchObject.cpp b/src/Mod/Sketcher/App/SketchObject.cpp index f5bf6a558a..c291d384f4 100644 --- a/src/Mod/Sketcher/App/SketchObject.cpp +++ b/src/Mod/Sketcher/App/SketchObject.cpp @@ -1185,7 +1185,7 @@ void SketchObject::setConstraintExpression(int constNum, const std::string& newE if (info.expression) { try { std::shared_ptr expr(App::Expression::parse(this, newExpression)); - setExpression(path, expr); + setExpression(path, std::move(expr)); } catch (const Base::Exception&) { Base::Console().Error("Failed to set constraint expression.");