summaryrefslogtreecommitdiff
path: root/helpcompiler/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-23 16:04:59 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-25 17:19:36 +0200
commita006f60b6ae22db6acb57d06167a3c6fd8bc6f1b (patch)
tree707809080a1fbb95c101de7afe3233f85f0f7bcb /helpcompiler/source
parentd116894b26f538793a0d5dc5847efd2fb53e7acb (diff)
loplugin:oncevar in helpcompiler..jvmfwk
Change-Id: Ia9b20a8ca95684cbeb21e3425972c43ba50df3cd Reviewed-on: https://gerrit.libreoffice.org/39187 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'helpcompiler/source')
-rw-r--r--helpcompiler/source/HelpCompiler.cxx3
-rw-r--r--helpcompiler/source/HelpLinker.cxx2
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 );