diff options
Diffstat (limited to 'helpcompiler')
-rw-r--r-- | helpcompiler/source/HelpCompiler.cxx | 3 | ||||
-rw-r--r-- | helpcompiler/source/HelpLinker.cxx | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/helpcompiler/source/HelpCompiler.cxx b/helpcompiler/source/HelpCompiler.cxx index eb1c54830ffe..92856d04cf93 100644 --- a/helpcompiler/source/HelpCompiler.cxx +++ b/helpcompiler/source/HelpCompiler.cxx @@ -490,8 +490,7 @@ bool HelpCompiler::compile() { if (fileName.compare(0, 6, "/text/") == 0) { - int len = strlen("/text/"); - actMod = fileName.substr(len); + actMod = fileName.substr(strlen("/text/")); actMod = actMod.substr(0, actMod.find('/')); } } diff --git a/helpcompiler/source/HelpLinker.cxx b/helpcompiler/source/HelpLinker.cxx index d2e3080ca102..1f71635e174e 100644 --- a/helpcompiler/source/HelpLinker.cxx +++ b/helpcompiler/source/HelpLinker.cxx @@ -151,7 +151,7 @@ void writeKeyValue_DBHelp( FILE* pFile, const std::string& aKeyStr, const std::s { if( pFile == nullptr ) return; - char cLF = 10; + char const cLF = 10; unsigned int nKeyLen = aKeyStr.length(); unsigned int nValueLen = aValueStr.length(); fprintf( pFile, "%x ", nKeyLen ); |