summaryrefslogtreecommitdiff
path: root/helpcompiler
diff options
context:
space:
mode:
authorƁukasz Hryniuk <lukasz.hryniuk@wp.pl>2015-01-04 22:50:05 +0100
committerNoel Grandin <noelgrandin@gmail.com>2015-01-07 06:47:04 +0000
commit9fd89a5952a48b473cee03a2681eb5d4cd6d1742 (patch)
tree1fbf98ba46e86989826adf5d559f51c82d59a5e5 /helpcompiler
parenta527ad98e58a7fc9af482f9088687d82e5c52cca (diff)
fdo#39440 reduce scope of local variables
Beside scope changes, it fixes lack of initialization in a few places. Change-Id: Ia09fdb9845d8ac17256330a5ec5168401c84f0f2 Reviewed-on: https://gerrit.libreoffice.org/13755 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'helpcompiler')
-rw-r--r--helpcompiler/source/HelpLinker.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/helpcompiler/source/HelpLinker.cxx b/helpcompiler/source/HelpLinker.cxx
index 944946916f89..b85911aa8e0b 100644
--- a/helpcompiler/source/HelpLinker.cxx
+++ b/helpcompiler/source/HelpLinker.cxx
@@ -283,7 +283,6 @@ void HelpLinker::initIndexerPreProcessor()
*/
void HelpLinker::link() throw(HelpProcessingException, BasicCodeTagger::TaggerException)
{
- bool bIndexForExtension = true;
if( bExtensionMode )
{
@@ -337,6 +336,7 @@ void HelpLinker::link() throw(HelpProcessingException, BasicCodeTagger::TaggerEx
// catch HelpProcessingException to avoid locking data bases
try
{
+ bool bIndexForExtension = true;
// lastly, initialize the indexBuilder
if ( (!bExtensionMode || bIndexForExtension) && !helpFiles.empty())
initIndexerPreProcessor();