summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-01-10 08:10:12 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-01-10 08:10:12 +0100
commite12323f0aa27c23da754ec324e3970a43d507d3e (patch)
tree8594e84013c380ee50bc8aa3b2b3d48290315d0a /svx
parent931b1fb6959dcdd6b37311a5eb07dedd7e5a26d7 (diff)
New loplugin:conststringvar: svx
Change-Id: I440b34fca4b084e0702bbc9a7b836bfd39258bfe
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/hexcolorcontrol.cxx2
-rw-r--r--svx/source/form/fmsrccfg.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/dialog/hexcolorcontrol.cxx b/svx/source/dialog/hexcolorcontrol.cxx
index 5cf5db04eafb..115dbe7997cd 100644
--- a/svx/source/dialog/hexcolorcontrol.cxx
+++ b/svx/source/dialog/hexcolorcontrol.cxx
@@ -44,7 +44,7 @@ sal_Int32 HexColorControl::GetColor()
if (nLen < 7)
{
- static const sal_Char* pNullStr = "000000";
+ static const sal_Char* const pNullStr = "000000";
aStr += OUString::createFromAscii( &pNullStr[nLen-1] );
}
diff --git a/svx/source/form/fmsrccfg.cxx b/svx/source/form/fmsrccfg.cxx
index beb85c9d32be..ee71be3a63de 100644
--- a/svx/source/form/fmsrccfg.cxx
+++ b/svx/source/form/fmsrccfg.cxx
@@ -138,7 +138,7 @@ namespace svxform
OString(
"lcl_implMapIntValue: could not convert the integer value "
+ OString::number(_nValue) + " !").getStr());
- static const sal_Char* s_pDummy = "";
+ static const sal_Char* const s_pDummy = "";
// just as a fallback ....
return s_pDummy;
}