1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-12 09:04:33 +02:00

Warnings--

This commit is contained in:
Jeff Mitchell
2011-05-18 18:09:07 -04:00
parent 18708f7c28
commit 73ffa506c7
3 changed files with 7 additions and 2 deletions

View File

@@ -54,7 +54,7 @@ void
MusixMatchPlugin::getInfo( const QString caller, const Tomahawk::InfoSystem::InfoType type, const QVariant input, const Tomahawk::InfoSystem::InfoCustomData customData ) MusixMatchPlugin::getInfo( const QString caller, const Tomahawk::InfoSystem::InfoType type, const QVariant input, const Tomahawk::InfoSystem::InfoCustomData customData )
{ {
qDebug() << Q_FUNC_INFO; qDebug() << Q_FUNC_INFO;
if( !isValidTrackData(caller, input, customData) || !input.canConvert<Tomahawk::InfoSystem::InfoCustomData>() || m_nam.isNull() ) if( !isValidTrackData(caller, input, customData) || !input.canConvert<Tomahawk::InfoSystem::InfoCustomData>() || m_nam.isNull() || type != Tomahawk::InfoSystem::InfoTrackLyrics )
return; return;
Tomahawk::InfoSystem::InfoCustomData hash = input.value<Tomahawk::InfoSystem::InfoCustomData>(); Tomahawk::InfoSystem::InfoCustomData hash = input.value<Tomahawk::InfoSystem::InfoCustomData>();
QString artist = hash["artistName"].toString(); QString artist = hash["artistName"].toString();

View File

@@ -79,18 +79,21 @@ SipPlugin::peersOnline() const
void void
SipPlugin::setProxy( const QNetworkProxy& proxy ) SipPlugin::setProxy( const QNetworkProxy& proxy )
{ {
Q_UNUSED( proxy );
qDebug() << Q_FUNC_INFO << "Not implemented"; qDebug() << Q_FUNC_INFO << "Not implemented";
} }
void void
SipPlugin::onError( int code, const QString& error ) SipPlugin::onError( int code, const QString& error )
{ {
Q_UNUSED( code );
m_cachedError = error; m_cachedError = error;
} }
void void
SipPlugin::onStateChange( SipPlugin::ConnectionState state ) SipPlugin::onStateChange( SipPlugin::ConnectionState state )
{ {
Q_UNUSED( state );
m_cachedError.clear(); m_cachedError.clear();
} }

View File

@@ -52,7 +52,9 @@ SipInfo::SipInfo()
d = new SipInfoPrivate; d = new SipInfoPrivate;
} }
SipInfo::SipInfo(const SipInfo& other): d ( other.d ) SipInfo::SipInfo(const SipInfo& other)
: QObject()
, d( other.d )
{ {
} }