[PATCH 8/9] Bugfix resultsetforquery

Gert van Valkenhoef g.h.m.van.valkenhoef at rug.nl
Sun Feb 19 09:31:16 PST 2012


---
 .../source/cxxhelp/provider/resultsetforquery.cxx  |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx b/xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx
index d0dea28..e8fe9d8 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 )
                 {
-- 
1.7.0.4


--------------010002010906020500040707
Content-Type: text/x-patch;
 name="0009-HelpIndexer-and-HelpSearch-remove-Java.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="0009-HelpIndexer-and-HelpSearch-remove-Java.patch"



More information about the LibreOffice mailing list