mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-23 14:13:57 +02:00
Style fixes.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -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 );
|
||||
|
@@ -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
|
||||
|
@@ -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() ) );
|
||||
|
||||
|
Reference in New Issue
Block a user