From 70d11e33dc13ac0517ad86f9f8da684b9711630e Mon Sep 17 00:00:00 2001 From: Benjamin Nauck Date: Mon, 14 Apr 2025 08:01:07 +0200 Subject: [PATCH] Sketcher: Fix 529853 Variable copied when it could be moved --- src/Mod/Sketcher/App/SketchObject.cpp | 2 +- src/Mod/Sketcher/App/SketchObject.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Sketcher/App/SketchObject.cpp b/src/Mod/Sketcher/App/SketchObject.cpp index f75414610c..a678ee15e7 100644 --- a/src/Mod/Sketcher/App/SketchObject.cpp +++ b/src/Mod/Sketcher/App/SketchObject.cpp @@ -1353,7 +1353,7 @@ int SketchObject::diagnoseAdditionalConstraints( return lastDoF; } -int SketchObject::moveGeometries(std::vector geoEltIds, const Base::Vector3d& toPoint, bool relative, +int SketchObject::moveGeometries(const std::vector& geoEltIds, const Base::Vector3d& toPoint, bool relative, bool updateGeoBeforeMoving) { diff --git a/src/Mod/Sketcher/App/SketchObject.h b/src/Mod/Sketcher/App/SketchObject.h index 4d17218403..2b486aaed1 100644 --- a/src/Mod/Sketcher/App/SketchObject.h +++ b/src/Mod/Sketcher/App/SketchObject.h @@ -354,7 +354,7 @@ public: /// toggle the driving status of this constraint int toggleVirtualSpace(int ConstrId); /// move this point to a new location and solve - int moveGeometries(std::vector geoEltIds, + int moveGeometries(const std::vector& geoEltIds, const Base::Vector3d& toPoint, bool relative = false, bool updateGeoBeforeMoving = false);