1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-07 14:46:33 +02:00

Codestyle fix

This commit is contained in:
Hugo Lindström
2011-11-23 22:56:37 +01:00
parent 31945b9017
commit 9f0b412626

View File

@@ -91,12 +91,14 @@ M3uLoader::parseM3u( const QString& fileLink )
QFileInfo fileInfo( fileLink ); QFileInfo fileInfo( fileLink );
QFile file( QUrl::fromUserInput( fileLink ).toLocalFile() ); QFile file( QUrl::fromUserInput( fileLink ).toLocalFile() );
if (!file.open(QIODevice::ReadOnly | QIODevice::Text)){ if ( !file.open( QIODevice::ReadOnly | QIODevice::Text ) )
{
qDebug() << "Error" << file.errorString(); qDebug() << "Error" << file.errorString();
return; return;
} }
while (!file.atEnd()) { while ( !file.atEnd() )
{
QByteArray line = file.readLine(); QByteArray line = file.readLine();
/// If anyone wants to take on the regex for parsing EXT, go ahead /// If anyone wants to take on the regex for parsing EXT, go ahead
@@ -119,7 +121,8 @@ M3uLoader::parseM3u( const QString& fileLink )
} }
if( !m_tracks.isEmpty() ){ if( !m_tracks.isEmpty() )
{
qDebug() << Q_FUNC_INFO << "Emitting tracks!"; qDebug() << Q_FUNC_INFO << "Emitting tracks!";
emit tracks( m_tracks ); emit tracks( m_tracks );
} }