mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +02:00
* No need to pass DatabaseImpl into FuzzyIndex.
This commit is contained in:
@@ -79,7 +79,7 @@ DatabaseImpl::DatabaseImpl( const QString& dbname, Database* parent )
|
||||
// in case of unclean shutdown last time:
|
||||
query.exec( "UPDATE source SET isonline = 'false'" );
|
||||
|
||||
m_fuzzyIndex = new FuzzyIndex( *this, schemaUpdated );
|
||||
m_fuzzyIndex = new FuzzyIndex( schemaUpdated );
|
||||
if ( schemaUpdated )
|
||||
QTimer::singleShot( 0, this, SLOT( updateIndex() ) );
|
||||
|
||||
|
@@ -38,9 +38,8 @@ using namespace lucene::queryParser;
|
||||
using namespace lucene::search;
|
||||
|
||||
|
||||
FuzzyIndex::FuzzyIndex( DatabaseImpl& db, bool wipeIndex )
|
||||
FuzzyIndex::FuzzyIndex( bool wipeIndex )
|
||||
: QObject()
|
||||
, m_db( db )
|
||||
, m_luceneReader( 0 )
|
||||
, m_luceneSearcher( 0 )
|
||||
{
|
||||
|
@@ -55,7 +55,7 @@ class FuzzyIndex : public QObject
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit FuzzyIndex( DatabaseImpl& db, bool wipeIndex = false );
|
||||
explicit FuzzyIndex( bool wipeIndex = false );
|
||||
~FuzzyIndex();
|
||||
|
||||
void beginIndexing();
|
||||
@@ -72,7 +72,6 @@ public slots:
|
||||
QMap< int, float > searchAlbum( const Tomahawk::query_ptr& query );
|
||||
|
||||
private:
|
||||
DatabaseImpl& m_db;
|
||||
QMutex m_mutex;
|
||||
QString m_lucenePath;
|
||||
|
||||
|
Reference in New Issue
Block a user