Sketcher: Fix 512831 Variable copied when it could be moved
This commit is contained in:
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user