diff --git a/src/Mod/Sketcher/App/SketchObject.cpp b/src/Mod/Sketcher/App/SketchObject.cpp index 7c52b0e953..70d9a72bd4 100644 --- a/src/Mod/Sketcher/App/SketchObject.cpp +++ b/src/Mod/Sketcher/App/SketchObject.cpp @@ -7083,7 +7083,7 @@ int SketchObject::carbonCopy(App::DocumentObject* pObj, bool construction) * * if (expr_info.expression)*/ // App::Expression * expr = parse(this, const std::string& buffer); - setExpression(Constraints.createPath(nextcid), expr); + setExpression(Constraints.createPath(nextcid), std::move(expr)); } } }