diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-28 09:13:04 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-28 12:37:31 +0200 |
commit | bdabb4c07d89bf57fa5cc52455c889337052a8c8 (patch) | |
tree | 5f0b5bdf066ea12457d012fe0c283719c39543f7 /xmlhelp | |
parent | 8c1d3c07d6903ac8cb5feb1dc2f403af17a95593 (diff) |
loplugin:oncevar in writerfilter..xmlhelp
Change-Id: I1319494e16586f7e0b5149faecd3d1c36e336b1b
Reviewed-on: https://gerrit.libreoffice.org/39343
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmlhelp')
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/databases.cxx | 9 | ||||
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/db.cxx | 3 |
2 files changed, 4 insertions, 8 deletions
diff --git a/xmlhelp/source/cxxhelp/provider/databases.cxx b/xmlhelp/source/cxxhelp/provider/databases.cxx index 3fc71e0f87c1..1038566cc3f0 100644 --- a/xmlhelp/source/cxxhelp/provider/databases.cxx +++ b/xmlhelp/source/cxxhelp/provider/databases.cxx @@ -755,9 +755,8 @@ KeywordInfo* Databases::getKeyword( const OUString& Database, helpdatafileproxy::Hdf* pHdf = getHelpDataFile( Database,Language ); if( pHdf != nullptr ) { - bool bOptimizeForPerformance = true; pHdf->releaseHashMap(); - pHdf->createHashMap( bOptimizeForPerformance ); + pHdf->createHashMap( true/*bOptimizeForPerformance*/ ); } while( aHdf.getNextKeyAndValue( aKey, aValue ) ) @@ -1788,8 +1787,6 @@ OUString IndexFolderIterator::implGetIndexFolderFromPackage( bool& o_rbTemporary else aLang = "en"; - OUString aMod("help"); - OUString aZipDir = aLangURL; if( !bIsWriteAccess ) { @@ -1811,8 +1808,8 @@ OUString IndexFolderIterator::implGetIndexFolderFromPackage( bool& o_rbTemporary } } - HelpIndexer aIndexer(aLang, aMod, aLangURL, aZipDir); - aIndexer.indexDocuments(); + HelpIndexer aIndexer(aLang, "help", aLangURL, aZipDir); + aIndexer.indexDocuments(); if( bIsWriteAccess ) aIndexFolder = implGetFileFromPackage( ".idxl", xPackage ); diff --git a/xmlhelp/source/cxxhelp/provider/db.cxx b/xmlhelp/source/cxxhelp/provider/db.cxx index 2510e80c0fb6..9c3c2fa9fe2a 100644 --- a/xmlhelp/source/cxxhelp/provider/db.cxx +++ b/xmlhelp/source/cxxhelp/provider/db.cxx @@ -147,8 +147,7 @@ bool Hdf::getValueForKey( const OString& rKey, HDFData& rValue ) if( m_pStringToDataMap == nullptr && m_pStringToValPosMap == nullptr ) { - bool bOptimizeForPerformance = false; - createHashMap( bOptimizeForPerformance ); + createHashMap( false/*bOptimizeForPerformance*/ ); } if( m_pStringToValPosMap != nullptr ) |