Sketcher: Fix 512831 Variable copied when it could be moved

This commit is contained in:
Benjamin Nauck
2025-04-11 08:28:48 +02:00
parent 2afc6bfeb8
commit 79e2d2f08d

View File

@@ -1185,7 +1185,7 @@ void SketchObject::setConstraintExpression(int constNum, const std::string& newE
if (info.expression) {
try {
std::shared_ptr<App::Expression> 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.");