mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-11 16:44:05 +02:00
Resolvers: Remove useless assignments
This commit is contained in:
@@ -388,7 +388,7 @@ JSResolverHelper::addUrlResult( const QString& url, const QVariantMap& result )
|
||||
void
|
||||
JSResolverHelper::reportCapabilities( const QVariant& v )
|
||||
{
|
||||
bool ok = 0;
|
||||
bool ok;
|
||||
int intCap = v.toInt( &ok );
|
||||
Tomahawk::ExternalResolver::Capabilities capabilities;
|
||||
if ( !ok )
|
||||
|
@@ -402,7 +402,7 @@ ScriptResolver::doSetup( const QVariantMap& m )
|
||||
m_timeout = m.value( "timeout", 5 ).toUInt() * 1000;
|
||||
bool compressed = m.value( "compressed", "false" ).toString() == "true";
|
||||
|
||||
bool ok = 0;
|
||||
bool ok;
|
||||
int intCap = m.value( "capabilities" ).toInt( &ok );
|
||||
if ( !ok )
|
||||
m_capabilities = NullCapability;
|
||||
|
Reference in New Issue
Block a user