From 9f0b412626d1a912643a7f090fae3c3b015da2a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20Lindstr=C3=B6m?= Date: Wed, 23 Nov 2011 22:56:37 +0100 Subject: [PATCH] Codestyle fix --- src/libtomahawk/utils/m3uloader.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/libtomahawk/utils/m3uloader.cpp b/src/libtomahawk/utils/m3uloader.cpp index 01d3b5d66..457f12d74 100644 --- a/src/libtomahawk/utils/m3uloader.cpp +++ b/src/libtomahawk/utils/m3uloader.cpp @@ -91,12 +91,14 @@ M3uLoader::parseM3u( const QString& fileLink ) QFileInfo fileInfo( fileLink ); QFile file( QUrl::fromUserInput( fileLink ).toLocalFile() ); - if (!file.open(QIODevice::ReadOnly | QIODevice::Text)){ + if ( !file.open( QIODevice::ReadOnly | QIODevice::Text ) ) + { qDebug() << "Error" << file.errorString(); return; } - while (!file.atEnd()) { + while ( !file.atEnd() ) + { QByteArray line = file.readLine(); /// 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!"; emit tracks( m_tracks ); }