From 4e5bbcdc3d1fc4dd94ec896480ab049f3a4926fa Mon Sep 17 00:00:00 2001 From: Ramreiso Kashung Date: Sat, 8 Jan 2022 08:47:31 +0530 Subject: Optimise a range-based for loop This patch is an extension of https://gerrit.libreoffice.org/c/core/+/127734 related to comment made by Mike Kaganski Change-Id: Ia7a6480dba2a0752a52ae4f9655c345af9f3ba64 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128134 Reviewed-by: Julien Nabet Reviewed-by: Mike Kaganski Tested-by: Jenkins --- drawinglayer/source/primitive2d/markerarrayprimitive2d.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'drawinglayer/source') diff --git a/drawinglayer/source/primitive2d/markerarrayprimitive2d.cxx b/drawinglayer/source/primitive2d/markerarrayprimitive2d.cxx index eb5711307bea..cdaa15e53322 100644 --- a/drawinglayer/source/primitive2d/markerarrayprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/markerarrayprimitive2d.cxx @@ -51,9 +51,8 @@ namespace drawinglayer::primitive2d // use half size for expand aLogicHalfSize *= 0.5; - for(const auto& a : rPositions) + for(const auto& rPosition : rPositions) { - const basegfx::B2DPoint& rPosition(a); const basegfx::B2DRange aRange(rPosition - aLogicHalfSize, rPosition + aLogicHalfSize); basegfx::B2DHomMatrix aTransform; -- cgit v1.2.3