[Libreoffice-commits] .: xmlhelp/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Sun Sep 16 02:39:31 PDT 2012
xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
New commits:
commit 21fbe158f17c82c882ef91d3387f8adf15b6eb7c
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Sun Sep 16 11:38:17 2012 +0200
Remove useless variable
Change-Id: Id554c4aba878b329351b2c61e0e90d4515debd6a
diff --git a/xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx b/xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx
index 037bf8d..9032ba7 100644
--- a/xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx
+++ b/xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx
@@ -56,7 +56,6 @@
#include <algorithm>
#include <set>
-
#include <qe/Query.hxx>
#include <qe/DocGenerator.hxx>
#include "resultsetforquery.hxx"
@@ -233,8 +232,7 @@ ResultSetForQuery::ResultSetForQuery( const uno::Reference< lang::XMultiServiceF
for( int i = 0 ; i < nItemCount ; ++i )
{
const HitItem& rItem = rQueryResultVector[ i ];
- set< rtl::OUString >::iterator it;
- if( (it = aResultSet.find( rItem.m_aURL )) != aResultSet.end() )
+ if( (aResultSet.find( rItem.m_aURL )) != aResultSet.end() )
{
HitItem aItemCopy( rItem );
aItemCopy.m_fScore /= nQueryListSize; // To get average score
More information about the Libreoffice-commits
mailing list