From aac9419b8142d949084ceb5d6361b9623e72d74f Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 10 Jan 2017 08:09:43 +0100 Subject: New loplugin:conststringvar: vcl Change-Id: I573c19e4a2f6ee041998216ea4cf29677986d731 --- vcl/source/font/font.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'vcl/source/font') 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 ) { -- cgit v1.2.3