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