mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-23 22:25:11 +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 )
|
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;
|
failed = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -195,7 +195,7 @@ TomahawkLogHandler( QtMsgType type, const char* msg )
|
|||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
setupLogfile(QFile& f)
|
setupLogfile( QFile& f )
|
||||||
{
|
{
|
||||||
if ( QFileInfo( f ).size() > LOGFILE_SIZE )
|
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 )
|
#if QT_VERSION >= QT_VERSION_CHECK( 5, 0, 0 )
|
||||||
qInstallMessageHandler( TomahawkLogHandler );
|
qInstallMessageHandler( TomahawkLogHandler );
|
||||||
|
@@ -62,7 +62,7 @@ namespace Logger
|
|||||||
};
|
};
|
||||||
|
|
||||||
DLLEXPORT void TomahawkLogHandler( QtMsgType type, const char* msg );
|
DLLEXPORT void TomahawkLogHandler( QtMsgType type, const char* msg );
|
||||||
DLLEXPORT void setupLogfile(QFile& f);
|
DLLEXPORT void setupLogfile( QFile& f );
|
||||||
}
|
}
|
||||||
|
|
||||||
#define tLog Logger::TLog
|
#define tLog Logger::TLog
|
||||||
|
@@ -164,8 +164,8 @@ void
|
|||||||
TomahawkApp::init()
|
TomahawkApp::init()
|
||||||
{
|
{
|
||||||
qDebug() << "TomahawkApp thread:" << thread();
|
qDebug() << "TomahawkApp thread:" << thread();
|
||||||
m_logFile.setFileName(TomahawkUtils::logFilePath());
|
m_logFile.setFileName( TomahawkUtils::logFilePath() );
|
||||||
Logger::setupLogfile(m_logFile);
|
Logger::setupLogfile( m_logFile );
|
||||||
|
|
||||||
qsrand( QTime( 0, 0, 0 ).secsTo( QTime::currentTime() ) );
|
qsrand( QTime( 0, 0, 0 ).secsTo( QTime::currentTime() ) );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user