From 51d1ec7883444e6216f1020122084d3a996c9ecb Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 23 Oct 2018 07:50:57 +0200 Subject: clang-tidy performance-unnecessary-copy-init in editeng..i18npool Change-Id: I2ee2c8d15d8700cfaa1697363da4557c741a5f36 Reviewed-on: https://gerrit.libreoffice.org/62216 Tested-by: Jenkins Reviewed-by: Noel Grandin --- editeng/source/outliner/outliner.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editeng/source/outliner') diff --git a/editeng/source/outliner/outliner.cxx b/editeng/source/outliner/outliner.cxx index da008ce69989..51e0a5f96383 100644 --- a/editeng/source/outliner/outliner.cxx +++ b/editeng/source/outliner/outliner.cxx @@ -969,7 +969,7 @@ void Outliner::PaintBullet( sal_Int32 nPara, const Point& rStartPos, if(bStrippingPortions) { - const vcl::Font aSvxFont(pOutDev->GetFont()); + const vcl::Font& aSvxFont(pOutDev->GetFont()); std::unique_ptr pBuf(new long[ pPara->GetText().getLength() ]); pOutDev->GetTextArray( pPara->GetText(), pBuf.get() ); -- cgit