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:
@@ -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 );
|
||||
}
|
||||
|
@@ -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;
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user