diff options
author | Ramreiso Kashung <ramreisog24@gmail.com> | 2022-01-08 08:47:31 +0530 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2022-01-08 16:28:36 +0100 |
commit | 4e5bbcdc3d1fc4dd94ec896480ab049f3a4926fa (patch) | |
tree | caf36a170a067c23600fc630daabd7efdecb5f13 /drawinglayer/source | |
parent | c906ac8e8a06dc5df980e56d7d6776dfcb08aa2a (diff) |
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 <serval2412@yahoo.fr>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'drawinglayer/source')
-rw-r--r-- | drawinglayer/source/primitive2d/markerarrayprimitive2d.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
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; |