1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 19:30:21 +02:00

Use isEmpty rather than count.

This commit is contained in:
Christian Muehlhaeuser
2015-03-31 19:49:35 +02:00
parent c9610a7426
commit e250524fc0

View File

@@ -330,17 +330,16 @@ Pipeline::reportResults( QID qid, const QList< result_ptr >& results )
return; return;
if ( !d->qids.contains( qid ) ) if ( !d->qids.contains( qid ) )
{ {
if ( results.length() > 0 ) if ( !results.isEmpty() )
{ {
ResultProvider* resolvedBy = results[0]->resolvedBy(); ResultProvider* resolvedBy = results[0]->resolvedBy();
if ( resolvedBy ) if ( resolvedBy )
{ {
tDebug() << "Result arrived too late for:" << qid << "by" << resolvedBy->name(); tDebug() << "Result arrived too late for:" << qid << "by" << resolvedBy->name();
} }
else else
{ {
tDebug() << "Result arrived too late for:" << qid; tDebug() << "Result arrived too late for:" << qid;
} }
} }
return; return;