diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-07-09 09:24:11 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-07-09 21:38:43 +0200 |
commit | c42d9ce26f88a53e2b12ac0c22edba3b27bb4917 (patch) | |
tree | 3e1ed712a77c641523dd65cf8a97910e65664927 /svx/source | |
parent | 0f643befa3169a1e43a924c08e9595929fa16f96 (diff) |
cid#1555119 Use of auto that causes a copy
Change-Id: If77650947fb787b6122452bf896345cf2f852ca5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170202
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/svdraw/svdoedge.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/svdraw/svdoedge.cxx b/svx/source/svdraw/svdoedge.cxx index b37385a93c73..8b212f199c43 100644 --- a/svx/source/svdraw/svdoedge.cxx +++ b/svx/source/svdraw/svdoedge.cxx @@ -741,10 +741,10 @@ XPolygon SdrEdgeObj::ImpCalcEdgeTrack(const XPolygon& rTrack0, SdrObjConnection& } else { - auto aRectangle = getOutRectangle(); - if (!aRectangle.IsEmpty()) { - aPt1 = aRectangle.TopLeft(); - aPt2 = aRectangle.BottomRight(); + const tools::Rectangle& rRectangle = getOutRectangle(); + if (!rRectangle.IsEmpty()) { + aPt1 = rRectangle.TopLeft(); + aPt2 = rRectangle.BottomRight(); } } |