summaryrefslogtreecommitdiff
path: root/sw/source/core/edit/edfcol.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-23 09:47:23 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-24 08:36:27 +0200
commit645db9a2643832e29dbdf904e1cf7b323d273f86 (patch)
treebb799a9a87fb09b5d93972c6a627b1bc0b67ff85 /sw/source/core/edit/edfcol.cxx
parent2629aac31142449312f77c5843ea209cc810acb4 (diff)
clang-tidy performance-unnecessary-copy-init in sw
Change-Id: I515e3e8ddaee3e3ddc4bf3827fb85f3489e84539 Reviewed-on: https://gerrit.libreoffice.org/62253 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/edit/edfcol.cxx')
-rw-r--r--sw/source/core/edit/edfcol.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/edit/edfcol.cxx b/sw/source/core/edit/edfcol.cxx
index 962c9f6773f4..ca0b7819fd32 100644
--- a/sw/source/core/edit/edfcol.cxx
+++ b/sw/source/core/edit/edfcol.cxx
@@ -1476,7 +1476,7 @@ static void lcl_placeWatermarkInHeader(const SfxWatermarkItem& rWatermark,
if (!bSuccess || xWatermark.is() || bDeleteWatermark)
return;
- OUString sFont = rWatermark.GetFont();
+ const OUString& sFont = rWatermark.GetFont();
sal_Int16 nAngle = rWatermark.GetAngle();
sal_Int16 nTransparency = rWatermark.GetTransparency();
Color nColor = rWatermark.GetColor();