From f31c9f16fefd16ea434cdd68721d45bced9b78e1 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 23 Oct 2018 09:47:38 +0200 Subject: clang-tidy performance-unnecessary-copy-init in test..xmlscript Change-Id: I1ae16467a8e58e8a50f59b7a140e9f8b68bde07e Reviewed-on: https://gerrit.libreoffice.org/62254 Tested-by: Jenkins Reviewed-by: Noel Grandin --- vcl/source/outdev/polygon.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vcl/source/outdev') diff --git a/vcl/source/outdev/polygon.cxx b/vcl/source/outdev/polygon.cxx index 567c4d58e93b..aacbe00df924 100644 --- a/vcl/source/outdev/polygon.cxx +++ b/vcl/source/outdev/polygon.cxx @@ -475,7 +475,7 @@ void OutputDevice::ImplDrawPolyPolygon( const tools::PolyPolygon& rPolyPoly, con } if( pPolyPoly->Count() == 1 ) { - const tools::Polygon rPoly = pPolyPoly->GetObject( 0 ); + const tools::Polygon& rPoly = pPolyPoly->GetObject( 0 ); sal_uInt16 nSize = rPoly.GetSize(); if( nSize >= 2 ) -- cgit