1
0
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:
Christian Muehlhaeuser
2015-03-31 19:49:35 +02:00
parent c9610a7426
commit e250524fc0

View File

@@ -330,10 +330,9 @@ 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();