From 6adebe348e24cb972f1eb4b27c71ac140ee1bb71 Mon Sep 17 00:00:00 2001 From: Benjamin Nauck Date: Fri, 11 Apr 2025 08:30:01 +0200 Subject: [PATCH] Sketcher: Fix 512301 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 c291d384f4..3329375315 100644 --- a/src/Mod/Sketcher/App/SketchObject.cpp +++ b/src/Mod/Sketcher/App/SketchObject.cpp @@ -1142,7 +1142,7 @@ void SketchObject::reverseAngleConstraintToSupplementary(Constraint* constr, int // Edit the expression if any, else modify constraint value directly if (constraintHasExpression(constNum)) { std::string expression = getConstraintExpression(constNum); - setConstraintExpression(constNum, reverseAngleConstraintExpression(expression)); + setConstraintExpression(constNum, std::move(reverseAngleConstraintExpression(expression))); } else { double actAngle = constr->getValue();