diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-23 09:47:10 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-24 08:36:11 +0200 |
commit | 2629aac31142449312f77c5843ea209cc810acb4 (patch) | |
tree | 2d8e11d8b346b50a48f80cf1c28fed6962831730 /svx/source/engine3d | |
parent | 4e51d68dc3595dae8b2519e0a023c9b1ca13a8fd (diff) |
clang-tidy performance-unnecessary-copy-init in svx
Change-Id: I27f4dd0cb08f9b62496a1c51eed732a678e1c2e5
Reviewed-on: https://gerrit.libreoffice.org/62252
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/engine3d')
-rw-r--r-- | svx/source/engine3d/helperminimaldepth3d.cxx | 2 | ||||
-rw-r--r-- | svx/source/engine3d/obj3d.cxx | 2 | ||||
-rw-r--r-- | svx/source/engine3d/view3d.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/engine3d/helperminimaldepth3d.cxx b/svx/source/engine3d/helperminimaldepth3d.cxx index 228fc5876d20..04bac4157564 100644 --- a/svx/source/engine3d/helperminimaldepth3d.cxx +++ b/svx/source/engine3d/helperminimaldepth3d.cxx @@ -110,7 +110,7 @@ namespace drawinglayer for(sal_uInt32 a(0); a < nPolyCount; a++) { - const basegfx::B3DPolygon aPolygon(rPolyPolygon.getB3DPolygon(a)); + const basegfx::B3DPolygon& aPolygon(rPolyPolygon.getB3DPolygon(a)); const sal_uInt32 nCount(aPolygon.count()); for(sal_uInt32 b(0); b < nCount; b++) diff --git a/svx/source/engine3d/obj3d.cxx b/svx/source/engine3d/obj3d.cxx index 15ecacd3ed16..a7d6c5d05e59 100644 --- a/svx/source/engine3d/obj3d.cxx +++ b/svx/source/engine3d/obj3d.cxx @@ -308,7 +308,7 @@ basegfx::B3DRange E3dObject::RecalcBoundVolume() const if(pVCOfE3D) { // BoundVolume is without 3D object transformation, use correct sequence - const drawinglayer::primitive3d::Primitive3DContainer xLocalSequence(pVCOfE3D->getVIP3DSWithoutObjectTransform()); + const drawinglayer::primitive3d::Primitive3DContainer& xLocalSequence(pVCOfE3D->getVIP3DSWithoutObjectTransform()); if(!xLocalSequence.empty()) { diff --git a/svx/source/engine3d/view3d.cxx b/svx/source/engine3d/view3d.cxx index 7b0bcc451b10..807045ef5990 100644 --- a/svx/source/engine3d/view3d.cxx +++ b/svx/source/engine3d/view3d.cxx @@ -168,7 +168,7 @@ void Impl3DMirrorConstructOverlay::SetMirrorAxis(Point aMirrorAxisA, Point aMirr for(sal_uInt32 a(0); a < mrView.PaintWindowCount(); a++) { SdrPaintWindow* pCandidate = mrView.GetPaintWindow(a); - rtl::Reference< sdr::overlay::OverlayManager > xTargetOverlay = pCandidate->GetOverlayManager(); + const rtl::Reference< sdr::overlay::OverlayManager >& xTargetOverlay = pCandidate->GetOverlayManager(); if(xTargetOverlay.is()) { |