mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-14 18:14:50 +02:00
Fixed compiler warnings for QMetaType comparison.
This commit is contained in:
@@ -564,7 +564,7 @@ ResolverAccount::onTestConfig( const QVariant& result )
|
||||
{
|
||||
tLog() << Q_FUNC_INFO << result;
|
||||
|
||||
if ( result.type() == QMetaType::QString )
|
||||
if ( result.type() == QVariant::String )
|
||||
{
|
||||
emit configTestResult( Accounts::ConfigTestResultOther, result.toString() );
|
||||
}
|
||||
@@ -589,6 +589,7 @@ AtticaResolverAccount::AtticaResolverAccount( const QString& accountId )
|
||||
|
||||
}
|
||||
|
||||
|
||||
AtticaResolverAccount::AtticaResolverAccount( const QString& accountId, const QString& path, const QString& atticaId, const QVariantHash& initialConfiguration )
|
||||
: ResolverAccount( accountId, path, initialConfiguration )
|
||||
, m_atticaId( atticaId )
|
||||
@@ -618,8 +619,6 @@ AtticaResolverAccount::init()
|
||||
loadIcon();
|
||||
else
|
||||
connect( AtticaManager::instance(), SIGNAL( resolversLoaded( Attica::Content::List ) ), this, SLOT( loadIcon() ) );
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@@ -157,7 +157,7 @@ ScriptAccount::reportScriptJobResult( const QVariantMap& result )
|
||||
// got a successful job result
|
||||
if ( result[ "error"].isNull() )
|
||||
{
|
||||
if (result[ "data" ].type() == QMetaType::QVariantMap)
|
||||
if ( result[ "data" ].type() == QVariant::Map )
|
||||
{
|
||||
const QVariantMap data = result[ "data" ].toMap();
|
||||
job->reportResultsMap( data );
|
||||
|
Reference in New Issue
Block a user