From 6b87d7df22eca0346935efa3cffc4d8b0adbc18e Mon Sep 17 00:00:00 2001 From: Benjamin Nauck Date: Fri, 11 Apr 2025 08:45:09 +0200 Subject: [PATCH] Sketcher: Fix 512328 Use of auto that causes a copy --- 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 a678ee15e7..c0670b4056 100644 --- a/src/Mod/Sketcher/App/SketchObject.cpp +++ b/src/Mod/Sketcher/App/SketchObject.cpp @@ -426,7 +426,7 @@ const std::map SketchObject::getInternalElementMap() co if (!internalElementMap.empty() || !MakeInternals.getValue()) return internalElementMap; - auto internalShape = InternalShape.getShape(); + const auto& internalShape = InternalShape.getShape(); auto shape = Shape.getShape().located(TopLoc_Location()); if (!internalShape.isNull() && !shape.isNull()) { std::vector names;