mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-13 17:43:59 +02:00
* Fixed compiler warnings in FuzzyIndex.
This commit is contained in:
@@ -267,7 +267,7 @@ FuzzyIndex::search( const Tomahawk::query_ptr& query )
|
||||
m_luceneSearcher->search( qry, collector );
|
||||
Collection<ScoreDocPtr> hits = collector->topDocs()->scoreDocs;
|
||||
|
||||
for ( uint i = 0; i < collector->getTotalHits() && i < 50; i++ )
|
||||
for ( int i = 0; i < collector->getTotalHits() && i < 50; i++ )
|
||||
{
|
||||
DocumentPtr d = m_luceneSearcher->doc( hits[i]->doc );
|
||||
float score = hits[i]->score;
|
||||
@@ -321,7 +321,7 @@ FuzzyIndex::searchAlbum( const Tomahawk::query_ptr& query )
|
||||
m_luceneSearcher->search( boost::dynamic_pointer_cast<Query>( qry ), collector );
|
||||
Collection<ScoreDocPtr> hits = collector->topDocs()->scoreDocs;
|
||||
|
||||
for ( uint i = 0; i < collector->getTotalHits(); i++ )
|
||||
for ( int i = 0; i < collector->getTotalHits(); i++ )
|
||||
{
|
||||
DocumentPtr d = m_luceneSearcher->doc( hits[i]->doc );
|
||||
float score = hits[i]->score;
|
||||
|
Reference in New Issue
Block a user