1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-23 06:02:53 +02:00

Style fixes.

This commit is contained in:
Christian Muehlhaeuser
2014-10-16 18:45:09 +02:00
parent 30e07b2603
commit 3037bab0cb
4 changed files with 6 additions and 6 deletions

View File

@@ -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;
}

View File

@@ -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<ostream>(open_ofstream(f.fileName()));
logStream = QSharedPointer<ostream>( open_ofstream( f.fileName() ) );
#if QT_VERSION >= QT_VERSION_CHECK( 5, 0, 0 )
qInstallMessageHandler( TomahawkLogHandler );

View File

@@ -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

View File

@@ -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() ) );