summaryrefslogtreecommitdiff
path: root/sw/source/core/inc/wrong.hxx
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/inc/wrong.hxx
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/inc/wrong.hxx')
-rw-r--r--sw/source/core/inc/wrong.hxx12
1 files changed, 4 insertions, 8 deletions
diff --git a/sw/source/core/inc/wrong.hxx b/sw/source/core/inc/wrong.hxx
index c5b4df884b9e..ac1e2a4db165 100644
--- a/sw/source/core/inc/wrong.hxx
+++ b/sw/source/core/inc/wrong.hxx
@@ -93,8 +93,7 @@ private:
{
if (xPropertyBag.is())
{
- const OUString colorKey("LineColor");
- css::uno::Any aLineColor = xPropertyBag->getValue(colorKey);
+ css::uno::Any aLineColor = xPropertyBag->getValue("LineColor");
css::util::Color lineColor = 0;
if (aLineColor >>= lineColor)
@@ -119,8 +118,7 @@ private:
{
if (xPropertyBag.is())
{
- const OUString typeKey("LineType");
- css::uno::Any aLineType = xPropertyBag->getValue(typeKey);
+ css::uno::Any aLineType = xPropertyBag->getValue("LineType");
::sal_Int16 lineType = 0;
if (!(aLineType >>= lineType))
@@ -161,8 +159,7 @@ private:
{
if (xPropertyBag.is())
{
- const OUString colorKey("LineColor");
- css::uno::Any aLineColor = xPropertyBag->getValue(colorKey);
+ css::uno::Any aLineColor = xPropertyBag->getValue("LineColor");
css::util::Color lineColor = 0;
if (aLineColor >>= lineColor)
@@ -187,8 +184,7 @@ private:
{
if (xPropertyBag.is())
{
- const OUString typeKey("LineType");
- css::uno::Any aLineType = xPropertyBag->getValue(typeKey);
+ css::uno::Any aLineType = xPropertyBag->getValue("LineType");
::sal_Int16 lineType = 0;
if (!(aLineType >>= lineType))