1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-22 21:54:00 +02:00

const ref'ify

This commit is contained in:
Leo Franchi
2012-04-06 14:55:37 -04:00
parent 2be9dfc45b
commit 58adc470ce
2 changed files with 4 additions and 6 deletions

View File

@@ -166,7 +166,7 @@ Album::cover( const QSize& size, bool forceLoad ) const
void void
Album::infoSystemInfo( Tomahawk::InfoSystem::InfoRequestData requestData, QVariant output ) Album::infoSystemInfo( const Tomahawk::InfoSystem::InfoRequestData& requestData, const QVariant& output )
{ {
if ( requestData.caller != m_uuid || if ( requestData.caller != m_uuid ||
requestData.type != Tomahawk::InfoSystem::InfoAlbumCoverArt ) requestData.type != Tomahawk::InfoSystem::InfoAlbumCoverArt )
@@ -189,10 +189,8 @@ Album::infoSystemInfo( Tomahawk::InfoSystem::InfoRequestData requestData, QVaria
void void
Album::infoSystemFinished( QString target ) Album::infoSystemFinished( const QString& target )
{ {
Q_UNUSED( target );
if ( target != m_uuid ) if ( target != m_uuid )
return; return;

View File

@@ -65,8 +65,8 @@ signals:
private slots: private slots:
void onTracksAdded( const QList<Tomahawk::query_ptr>& tracks ); void onTracksAdded( const QList<Tomahawk::query_ptr>& tracks );
void infoSystemInfo( Tomahawk::InfoSystem::InfoRequestData requestData, QVariant output ); void infoSystemInfo( const Tomahawk::InfoSystem::InfoRequestData& requestData, const QVariant& output );
void infoSystemFinished( QString target ); void infoSystemFinished( const QString& target );
private: private:
Q_DISABLE_COPY( Album ) Q_DISABLE_COPY( Album )