mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-07 22:56:42 +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;
|
return resultslist;
|
||||||
|
|
||||||
QList< QPair<int, float> > resultscapped;
|
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 );
|
resultscapped << resultslist.at( i );
|
||||||
}
|
}
|
||||||
|
@@ -73,15 +73,11 @@ public:
|
|||||||
|
|
||||||
QObject* object() const { return m_object; }
|
QObject* object() const { return m_object; }
|
||||||
|
|
||||||
static void dontDelete( Tomahawk::PlaylistInterface* obj )
|
|
||||||
{
|
|
||||||
tDebug() << Q_FUNC_INFO << obj;
|
|
||||||
}
|
|
||||||
virtual Tomahawk::playlistinterface_ptr getSharedPointer()
|
virtual Tomahawk::playlistinterface_ptr getSharedPointer()
|
||||||
{
|
{
|
||||||
if ( m_sharedPtr.isNull() )
|
if ( m_sharedPtr.isNull() )
|
||||||
{
|
{
|
||||||
m_sharedPtr = Tomahawk::playlistinterface_ptr( this, dontDelete );
|
m_sharedPtr = Tomahawk::playlistinterface_ptr( this );
|
||||||
}
|
}
|
||||||
|
|
||||||
return m_sharedPtr;
|
return m_sharedPtr;
|
||||||
|
@@ -77,8 +77,6 @@ private slots:
|
|||||||
void resolvingFinished( bool hasResults );
|
void resolvingFinished( bool hasResults );
|
||||||
|
|
||||||
private:
|
private:
|
||||||
SourcePlaylistInterface();
|
|
||||||
|
|
||||||
Tomahawk::source_ptr m_source;
|
Tomahawk::source_ptr m_source;
|
||||||
Tomahawk::result_ptr m_currentItem;
|
Tomahawk::result_ptr m_currentItem;
|
||||||
bool m_gotNextItem;
|
bool m_gotNextItem;
|
||||||
|
Reference in New Issue
Block a user