summaryrefslogtreecommitdiff
path: root/drawinglayer/source/primitive3d/sdrextrudeprimitive3d.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-23 07:47:33 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-23 14:34:59 +0200
commit32ca870833a89ec16ed7e08296dcc573dcc64029 (patch)
treebe4eb8d0382db032b7ddfe22df6303fd86ac2c15 /drawinglayer/source/primitive3d/sdrextrudeprimitive3d.cxx
parent509c017f5a6ee6b7c1bb9b61b36aef58a06afd27 (diff)
clang-tidy performance-unnecessary-copy-init in dbaccess..drawinglayer
Change-Id: I49a152b2aea93d30b16192260f4f659c7e5fcaee Reviewed-on: https://gerrit.libreoffice.org/62215 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'drawinglayer/source/primitive3d/sdrextrudeprimitive3d.cxx')
-rw-r--r--drawinglayer/source/primitive3d/sdrextrudeprimitive3d.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/drawinglayer/source/primitive3d/sdrextrudeprimitive3d.cxx b/drawinglayer/source/primitive3d/sdrextrudeprimitive3d.cxx
index 4a22113bb8cd..94fb0f34a0d9 100644
--- a/drawinglayer/source/primitive3d/sdrextrudeprimitive3d.cxx
+++ b/drawinglayer/source/primitive3d/sdrextrudeprimitive3d.cxx
@@ -154,7 +154,7 @@ namespace drawinglayer
for(a = 0; a < nCount; a++)
{
const sal_uInt32 nReducedCount(aReducedLoops.count());
- const basegfx::B3DPolygon aCandidate(aVerLine.getB3DPolygon(a));
+ const basegfx::B3DPolygon& aCandidate(aVerLine.getB3DPolygon(a));
bool bAdd(true);
if(nReducedCount)
@@ -182,8 +182,8 @@ namespace drawinglayer
for(sal_uInt32 b(1); b < nReducedCount; b++)
{
// get loop pair
- const basegfx::B3DPolygon aCandA(aReducedLoops.getB3DPolygon(b - 1));
- const basegfx::B3DPolygon aCandB(aReducedLoops.getB3DPolygon(b));
+ const basegfx::B3DPolygon& aCandA(aReducedLoops.getB3DPolygon(b - 1));
+ const basegfx::B3DPolygon& aCandB(aReducedLoops.getB3DPolygon(b));
// for each loop pair create the connection edges
createReducedOutlines(