summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-23 07:50:57 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-23 11:48:22 +0200
commit51d1ec7883444e6216f1020122084d3a996c9ecb (patch)
tree8b24c91daecfa2ccb922b6e1c91e29c3bf89e7dc /editeng
parentcd6dd8c6f3562cbccbc971b916c6a8933840ffeb (diff)
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/items/paperinf.cxx2
-rw-r--r--editeng/source/misc/acorrcfg.cxx3
-rw-r--r--editeng/source/outliner/outliner.cxx2
3 files changed, 4 insertions, 3 deletions
diff --git a/editeng/source/items/paperinf.cxx b/editeng/source/items/paperinf.cxx
index 546c1e9c1d68..07ab725f1591 100644
--- a/editeng/source/items/paperinf.cxx
+++ b/editeng/source/items/paperinf.cxx
@@ -65,7 +65,7 @@ Size SvxPaperInfo::GetPaperSize( const Printer* pPrinter )
if ( aPaperSize == aInvalidSize )
return GetPaperSize(PAPER_A4);
- MapMode aMap1 = pPrinter->GetMapMode();
+ const MapMode& aMap1 = pPrinter->GetMapMode();
MapMode aMap2;
if ( aMap1 == aMap2 )
diff --git a/editeng/source/misc/acorrcfg.cxx b/editeng/source/misc/acorrcfg.cxx
index e2c45e1850b0..c2b3dbe6fe31 100644
--- a/editeng/source/misc/acorrcfg.cxx
+++ b/editeng/source/misc/acorrcfg.cxx
@@ -48,7 +48,8 @@ SvxAutoCorrCfg::SvxAutoCorrCfg() :
bSearchInAllCategories(false)
{
SvtPathOptions aPathOpt;
- OUString sSharePath, sUserPath, sAutoPath( aPathOpt.GetAutoCorrectPath() );
+ OUString sSharePath, sUserPath;
+ OUString const & sAutoPath( aPathOpt.GetAutoCorrectPath() );
sSharePath = sAutoPath.getToken(0, ';');
sUserPath = sAutoPath.getToken(1, ';');
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<long[]> pBuf(new long[ pPara->GetText().getLength() ]);
pOutDev->GetTextArray( pPara->GetText(), pBuf.get() );