summaryrefslogtreecommitdiff
path: root/vcl/source/font
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-01-10 08:09:43 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-01-10 08:09:43 +0100
commitaac9419b8142d949084ceb5d6361b9623e72d74f (patch)
treee10ff7559ea271cfc957dca4fccb1cbefd1cf90f /vcl/source/font
parent61d6d605447d375c0fb717486dc4c2eb085afe27 (diff)
New loplugin:conststringvar: vcl
Change-Id: I573c19e4a2f6ee041998216ea4cf29677986d731
Diffstat (limited to 'vcl/source/font')
-rw-r--r--vcl/source/font/font.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/vcl/source/font/font.cxx b/vcl/source/font/font.cxx
index ebf89250d650..3db74fce047a 100644
--- a/vcl/source/font/font.cxx
+++ b/vcl/source/font/font.cxx
@@ -563,12 +563,12 @@ namespace
bool bResult = false;
// might be a type1, find eexec
const char* pStream = i_pBuffer;
- const char* pExec = "eexec";
+ const char* const pExec = "eexec";
const char* pExecPos = std::search( pStream, pStream+i_nSize, pExec, pExec+5 );
if( pExecPos != pStream+i_nSize)
{
// find /FamilyName entry
- static const char* pFam = "/FamilyName";
+ static const char* const pFam = "/FamilyName";
const char* pFamPos = std::search( pStream, pExecPos, pFam, pFam+11 );
if( pFamPos != pExecPos )
{
@@ -586,7 +586,7 @@ namespace
}
// parse /ItalicAngle
- static const char* pItalic = "/ItalicAngle";
+ static const char* const pItalic = "/ItalicAngle";
const char* pItalicPos = std::search( pStream, pExecPos, pItalic, pItalic+12 );
if( pItalicPos != pExecPos )
{
@@ -595,7 +595,7 @@ namespace
}
// parse /Weight
- static const char* pWeight = "/Weight";
+ static const char* const pWeight = "/Weight";
const char* pWeightPos = std::search( pStream, pExecPos, pWeight, pWeight+7 );
if( pWeightPos != pExecPos )
{
@@ -620,7 +620,7 @@ namespace
}
// parse isFixedPitch
- static const char* pFixed = "/isFixedPitch";
+ static const char* const pFixed = "/isFixedPitch";
const char* pFixedPos = std::search( pStream, pExecPos, pFixed, pFixed+13 );
if( pFixedPos != pExecPos )
{