1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-22 08:52:12 +02:00

Unsigned comparison <= 0 is identical to check for 0

This commit is contained in:
Lorenz Hübschle-Schneider 2014-10-20 17:36:36 +02:00
parent d74c465e58
commit 8bb14cc26c

@ -557,7 +557,7 @@ JSResolver::parseResultVariantList( const QVariantList& reslist )
continue;
unsigned int duration = m.value( "duration", 0 ).toUInt();
if ( duration <= 0 && m.contains( "durationString" ) )
if ( duration == 0 && m.contains( "durationString" ) )
{
QTime time = QTime::fromString( m.value( "durationString" ).toString(), "hh:mm:ss" );
duration = time.secsTo( QTime( 0, 0 ) ) * -1;