diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-07-19 21:50:40 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-07-20 16:40:49 +0200 |
commit | 0999687367a673d08d836c1cd47b4b0339d7ee2e (patch) | |
tree | cd0bd787b73cd2138c19fbd66f514ed3d06c29e4 /svx/source/svdraw/svdotext.cxx | |
parent | 3e93e4ac7cdf135b5c331bba7feb4b884ba7441c (diff) |
cid#1607830 Use of auto that causes a copy
and
cid#1607722 Use of auto that causes a copy
cid#1557606 Use of auto that causes a copy
cid#1557569 Use of auto that causes a copy
cid#1556239 Use of auto that causes a copy
cid#1556043 Use of auto that causes a copy
cid#1554961 Use of auto that causes a copy
cid#1554818 Use of auto that causes a copy
Change-Id: I9f74c7bc4da2c6b1df80d0fb4504dd4d03eb1053
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170784
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'svx/source/svdraw/svdotext.cxx')
-rw-r--r-- | svx/source/svdraw/svdotext.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/svx/source/svdraw/svdotext.cxx b/svx/source/svdraw/svdotext.cxx index 83e22a5ce60f..563e7ef02a2f 100644 --- a/svx/source/svdraw/svdotext.cxx +++ b/svx/source/svdraw/svdotext.cxx @@ -1154,18 +1154,18 @@ sal_uInt32 SdrTextObj::GetSnapPointCount() const Point SdrTextObj::GetSnapPoint(sal_uInt32 i) const { Point aP; - auto aRectangle = getRectangle(); + const auto& rRectangle = getRectangle(); switch (i) { - case 0: aP = aRectangle.TopLeft(); break; - case 1: aP = aRectangle.TopRight(); break; - case 2: aP = aRectangle.BottomLeft(); break; - case 3: aP = aRectangle.BottomRight(); break; - default: aP = aRectangle.Center(); break; + case 0: aP = rRectangle.TopLeft(); break; + case 1: aP = rRectangle.TopRight(); break; + case 2: aP = rRectangle.BottomLeft(); break; + case 3: aP = rRectangle.BottomRight(); break; + default: aP = rRectangle.Center(); break; } if (maGeo.m_nShearAngle) - ShearPoint(aP, aRectangle.TopLeft(), maGeo.mfTanShearAngle); + ShearPoint(aP, rRectangle.TopLeft(), maGeo.mfTanShearAngle); if (maGeo.m_nRotationAngle) - RotatePoint(aP, aRectangle.TopLeft(), maGeo.mfSinRotationAngle, maGeo.mfCosRotationAngle); + RotatePoint(aP, rRectangle.TopLeft(), maGeo.mfSinRotationAngle, maGeo.mfCosRotationAngle); return aP; } |