From 71231b9ea4a16e3582566e12a619b4deddef87c5 Mon Sep 17 00:00:00 2001 From: Gert van Valkenhoef Date: Sun, 19 Feb 2012 18:31:16 +0100 Subject: Bugfix resultsetforquery --- xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'xmlhelp/source/cxxhelp/provider') diff --git a/xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx b/xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx index d0dea2860206..e8fe9d899b6c 100644 --- a/xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx +++ b/xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx @@ -98,8 +98,6 @@ ResultSetForQuery::ResultSetForQuery( const uno::Reference< lang::XMultiServiceF xTrans->loadModule(TransliterationModules_UPPERCASE_LOWERCASE, aLocale ); - // EDIT FROM HERE - vector< vector< rtl::OUString > > queryList; { sal_Int32 idx; @@ -169,7 +167,7 @@ ResultSetForQuery::ResultSetForQuery( const uno::Reference< lang::XMultiServiceF } pQueryResultVector->reserve( hitCount ); -// INVOCATION HERE + // START Invoke CLucene HelpSearch rtl::OUString aLang = m_aURLParameter.get_language(); rtl::OUString aSystemPath; osl::FileBase::getSystemPathFromFileURL( idxDir, aSystemPath ); @@ -185,12 +183,13 @@ ResultSetForQuery::ResultSetForQuery( const uno::Reference< lang::XMultiServiceF if( nQueryListSize > 1 ) aSet.clear(); - for (unsigned j = 0; j < aPathVector.size(); ++i) { + for (unsigned j = 0; j < aPathVector.size(); ++j) { pQueryResultVector->push_back(HitItem(aPathVector[j], aScoreVector[j])); if (nQueryListSize > 1) aSet.insert(aPathVector[j]); } -// INVOCATION END + // END Invoke CLucene HelpSearch + // intersect if( nQueryListSize > 1 ) { -- cgit