diff --git a/src/libtomahawk/database/fuzzyindex/FuzzyIndex.cpp b/src/libtomahawk/database/fuzzyindex/FuzzyIndex.cpp index e58723270..ecc36c40d 100644 --- a/src/libtomahawk/database/fuzzyindex/FuzzyIndex.cpp +++ b/src/libtomahawk/database/fuzzyindex/FuzzyIndex.cpp @@ -50,7 +50,7 @@ FuzzyIndex::FuzzyIndex( QObject* parent, const QString& filename, bool wipe ) } catch ( LuceneException& error ) { - tDebug() << "Caught Lucene error:" << QString::fromWCharArray(error.getError().c_str()); + tDebug() << "Caught Lucene error:" << QString::fromWCharArray( error.getError().c_str() ); failed = true; } diff --git a/src/libtomahawk/utils/Logger.cpp b/src/libtomahawk/utils/Logger.cpp index 88962afc7..d39dfa00c 100644 --- a/src/libtomahawk/utils/Logger.cpp +++ b/src/libtomahawk/utils/Logger.cpp @@ -195,7 +195,7 @@ TomahawkLogHandler( QtMsgType type, const char* msg ) void -setupLogfile(QFile& f) +setupLogfile( QFile& f ) { if ( QFileInfo( f ).size() > LOGFILE_SIZE ) { @@ -216,7 +216,7 @@ setupLogfile(QFile& f) } } - logStream = QSharedPointer(open_ofstream(f.fileName())); + logStream = QSharedPointer( open_ofstream( f.fileName() ) ); #if QT_VERSION >= QT_VERSION_CHECK( 5, 0, 0 ) qInstallMessageHandler( TomahawkLogHandler ); diff --git a/src/libtomahawk/utils/Logger.h b/src/libtomahawk/utils/Logger.h index c5cc89096..a1f6eb4ac 100644 --- a/src/libtomahawk/utils/Logger.h +++ b/src/libtomahawk/utils/Logger.h @@ -62,7 +62,7 @@ namespace Logger }; DLLEXPORT void TomahawkLogHandler( QtMsgType type, const char* msg ); - DLLEXPORT void setupLogfile(QFile& f); + DLLEXPORT void setupLogfile( QFile& f ); } #define tLog Logger::TLog diff --git a/src/tomahawk/TomahawkApp.cpp b/src/tomahawk/TomahawkApp.cpp index 61fc9271b..74cb81a14 100644 --- a/src/tomahawk/TomahawkApp.cpp +++ b/src/tomahawk/TomahawkApp.cpp @@ -164,8 +164,8 @@ void TomahawkApp::init() { qDebug() << "TomahawkApp thread:" << thread(); - m_logFile.setFileName(TomahawkUtils::logFilePath()); - Logger::setupLogfile(m_logFile); + m_logFile.setFileName( TomahawkUtils::logFilePath() ); + Logger::setupLogfile( m_logFile ); qsrand( QTime( 0, 0, 0 ).secsTo( QTime::currentTime() ) );