1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 14:16:32 +02:00

* A few cleanups.

This commit is contained in:
Christian Muehlhaeuser
2011-12-10 02:02:44 +01:00
parent 3c3c1414fe
commit d22bccd9fb
3 changed files with 2 additions and 8 deletions

View File

@@ -385,7 +385,7 @@ DatabaseImpl::searchTable( const QString& table, const QString& name, uint limit
return resultslist;
QList< QPair<int, float> > resultscapped;
for ( unsigned int i = 0; i < limit && i < resultsmap.count(); i++ )
for ( int i = 0; i < (int)limit && i < resultsmap.count(); i++ )
{
resultscapped << resultslist.at( i );
}

View File

@@ -73,15 +73,11 @@ public:
QObject* object() const { return m_object; }
static void dontDelete( Tomahawk::PlaylistInterface* obj )
{
tDebug() << Q_FUNC_INFO << obj;
}
virtual Tomahawk::playlistinterface_ptr getSharedPointer()
{
if ( m_sharedPtr.isNull() )
{
m_sharedPtr = Tomahawk::playlistinterface_ptr( this, dontDelete );
m_sharedPtr = Tomahawk::playlistinterface_ptr( this );
}
return m_sharedPtr;

View File

@@ -77,8 +77,6 @@ private slots:
void resolvingFinished( bool hasResults );
private:
SourcePlaylistInterface();
Tomahawk::source_ptr m_source;
Tomahawk::result_ptr m_currentItem;
bool m_gotNextItem;