From a329eb494057afa69da48abb41add74903d8b5f2 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Wed, 28 Nov 2012 11:33:06 +0100 Subject: [PATCH] * Warnings-- --- src/libtomahawk/AlbumPlaylistInterface.cpp | 4 ++++ src/libtomahawk/ArtistPlaylistInterface.cpp | 3 +++ src/libtomahawk/playlist/PlayableModel.cpp | 2 ++ 3 files changed, 9 insertions(+) diff --git a/src/libtomahawk/AlbumPlaylistInterface.cpp b/src/libtomahawk/AlbumPlaylistInterface.cpp index 89d1aff9d..c8bdb2732 100644 --- a/src/libtomahawk/AlbumPlaylistInterface.cpp +++ b/src/libtomahawk/AlbumPlaylistInterface.cpp @@ -55,6 +55,7 @@ AlbumPlaylistInterface::~AlbumPlaylistInterface() void AlbumPlaylistInterface::setCurrentIndex( qint64 index ) { + Q_UNUSED( index ); Q_ASSERT( false ); /* m_currentTrack = index; m_currentItem = m_queries.at( index )->results().first();*/ @@ -64,6 +65,8 @@ AlbumPlaylistInterface::setCurrentIndex( qint64 index ) qint64 AlbumPlaylistInterface::siblingIndex( int itemsAway, qint64 rootIndex ) const { + Q_UNUSED( itemsAway ); + Q_UNUSED( rootIndex ); Q_ASSERT( false ); /* @@ -92,6 +95,7 @@ AlbumPlaylistInterface::currentItem() const bool AlbumPlaylistInterface::setCurrentTrack( unsigned int albumpos ) { + Q_UNUSED( albumpos ); Q_ASSERT( false ); return false; diff --git a/src/libtomahawk/ArtistPlaylistInterface.cpp b/src/libtomahawk/ArtistPlaylistInterface.cpp index 274459adb..031de4368 100644 --- a/src/libtomahawk/ArtistPlaylistInterface.cpp +++ b/src/libtomahawk/ArtistPlaylistInterface.cpp @@ -54,6 +54,7 @@ ArtistPlaylistInterface::~ArtistPlaylistInterface() void ArtistPlaylistInterface::setCurrentIndex( qint64 index ) { + Q_UNUSED( index ); Q_ASSERT( false ); /* m_currentTrack = index; @@ -64,6 +65,8 @@ ArtistPlaylistInterface::setCurrentIndex( qint64 index ) qint64 ArtistPlaylistInterface::siblingIndex( int itemsAway, qint64 rootIndex ) const { + Q_UNUSED( itemsAway ); + Q_UNUSED( rootIndex ); Q_ASSERT( false ); /* qint64 p = m_currentTrack; diff --git a/src/libtomahawk/playlist/PlayableModel.cpp b/src/libtomahawk/playlist/PlayableModel.cpp index 5912404fa..83b09a71e 100644 --- a/src/libtomahawk/playlist/PlayableModel.cpp +++ b/src/libtomahawk/playlist/PlayableModel.cpp @@ -861,6 +861,8 @@ PlayableModel::setIcon( const QPixmap& pixmap ) void PlayableModel::onQueryBecamePlayable( bool playable ) { + Q_UNUSED( playable ); + Tomahawk::Query* q = qobject_cast< Query* >( sender() ); if ( !q ) {