summaryrefslogtreecommitdiff
path: root/sw/source/core/edit/edfcol.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-06-05 10:47:35 +0200
committerStephan Bergmann <sbergman@redhat.com>2020-06-05 12:53:41 +0200
commit2a3c206dfbba4677842b59d1ec22fd1ec957969a (patch)
treec21ede651d15477a2ae94c325564c1b2e2a308ca /sw/source/core/edit/edfcol.cxx
parenta2c7244ae1ea65345ba11c1ce2501dba34b51362 (diff)
Upcoming loplugin:elidestringvar: sw
Change-Id: I3805d7a0f8f0e93463a2285a1ce52f6a5daba27d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95578 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sw/source/core/edit/edfcol.cxx')
-rw-r--r--sw/source/core/edit/edfcol.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/core/edit/edfcol.cxx b/sw/source/core/edit/edfcol.cxx
index d0154b4886ef..816c4cf727e1 100644
--- a/sw/source/core/edit/edfcol.cxx
+++ b/sw/source/core/edit/edfcol.cxx
@@ -1394,10 +1394,9 @@ SfxWatermarkItem SwEditShell::GetWatermark() const
uno::Reference<text::XText> xHeaderText;
xPageStyle->getPropertyValue(UNO_NAME_HEADER_TEXT) >>= xHeaderText;
- OUString aShapeServiceName = "com.sun.star.drawing.CustomShape";
OUString sWatermark = "";
bool bSuccess = false;
- uno::Reference<drawing::XShape> xWatermark = lcl_getWatermark(xHeaderText, aShapeServiceName, sWatermark, bSuccess);
+ uno::Reference<drawing::XShape> xWatermark = lcl_getWatermark(xHeaderText, "com.sun.star.drawing.CustomShape", sWatermark, bSuccess);
if (xWatermark.is())
{