New loplugin:conststringvar: svx

Change-Id: I440b34fca4b084e0702bbc9a7b836bfd39258bfe
This commit is contained in:
Stephan Bergmann
2017-01-10 08:10:12 +01:00
parent 931b1fb695
commit e12323f0aa
2 changed files with 2 additions and 2 deletions

View File

@@ -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] );
}

View File

@@ -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;
}