mirror of
https://github.com/x-tools-author/x-tools.git
synced 2025-09-15 15:28:40 +08:00
style: do something make clion happy
This commit is contained in:
parent
a3aeb83c43
commit
8b5f1e7d8c
@ -57,7 +57,7 @@ void sakShutdownGoogleLogging()
|
||||
|
||||
#endif
|
||||
|
||||
void qtLogToGlog(QtMsgType type, const QMessageLogContext &context, const QString &msg)
|
||||
void qtLogToGoogleLog(QtMsgType type, const QMessageLogContext &context, const QString &msg)
|
||||
{
|
||||
QByteArray localMsg = msg.toUtf8();
|
||||
const char *file = context.file ? context.file : "";
|
||||
@ -109,7 +109,7 @@ static void sakInitApp()
|
||||
static void sakInstallMessageHandler()
|
||||
{
|
||||
#ifndef QT_DEBUG
|
||||
qInstallMessageHandler(qtLogToGlog);
|
||||
qInstallMessageHandler(qtLogToGoogleLog);
|
||||
#endif
|
||||
}
|
||||
|
||||
@ -158,10 +158,9 @@ int main(const int argc, char *argv[])
|
||||
sakInitHdpi();
|
||||
sakInitAppStyle();
|
||||
|
||||
// Text github action.
|
||||
|
||||
SAKLog::instance()->start();
|
||||
SAKApplication app(argc, argv);
|
||||
int ret = SAKApplication::exec();
|
||||
sakShutdownGoogleLogging();
|
||||
return app.exec();
|
||||
return ret;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user