mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-10 08:04:25 +02:00
Use isEmpty rather than count.
This commit is contained in:
@@ -330,10 +330,9 @@ Pipeline::reportResults( QID qid, const QList< result_ptr >& results )
|
||||
return;
|
||||
if ( !d->qids.contains( qid ) )
|
||||
{
|
||||
if ( results.length() > 0 )
|
||||
if ( !results.isEmpty() )
|
||||
{
|
||||
ResultProvider* resolvedBy = results[0]->resolvedBy();
|
||||
|
||||
if ( resolvedBy )
|
||||
{
|
||||
tDebug() << "Result arrived too late for:" << qid << "by" << resolvedBy->name();
|
||||
|
Reference in New Issue
Block a user