summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-23 09:46:58 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-24 08:35:56 +0200
commit4e51d68dc3595dae8b2519e0a023c9b1ca13a8fd (patch)
treea73bff3750fae258b3b4321cc65e68f6ff8ed0c7 /svtools
parentec98adb2ec71882801a4db031c8e2bcf3075c5a0 (diff)
clang-tidy performance-unnecessary-copy-init in sfx2..svtools
Change-Id: I1e92472b4aaeca1eb1372bd18d10cc9e0766dc39 Reviewed-on: https://gerrit.libreoffice.org/62251 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/ctrlbox.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx
index 4a8c98c046a1..43e8bb79e8e2 100644
--- a/svtools/source/control/ctrlbox.cxx
+++ b/svtools/source/control/ctrlbox.cxx
@@ -289,7 +289,7 @@ static void lclDrawPolygon( OutputDevice& rDev, const basegfx::B2DPolygon& rPoly
for ( sal_uInt32 i = 0; i < aPolygons.count( ); i++ )
{
- basegfx::B2DPolygon aDash = aPolygons.getB2DPolygon( i );
+ const basegfx::B2DPolygon& aDash = aPolygons.getB2DPolygon( i );
basegfx::B2DPoint aStart = aDash.getB2DPoint( 0 );
basegfx::B2DPoint aEnd = aDash.getB2DPoint( aDash.count() - 1 );
@@ -851,7 +851,7 @@ void FontNameBox::UserDraw( const UserDrawEvent& rUDEvt )
tools::Rectangle aTextRect;
// Preview the font name
- OUString sFontName = rFontMetric.GetFamilyName();
+ const OUString& sFontName = rFontMetric.GetFamilyName();
//If it shouldn't or can't draw its own name because it doesn't have the glyphs
if (!canRenderNameOfSelectedFont(*pRenderContext))