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;