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
This commit is contained in:
committed by
Mike Kaganski
parent
c906ac8e8a
commit
4e5bbcdc3d
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user