mirror of
https://github.com/clementine-player/Clementine
synced 2025-02-03 12:47:31 +01:00
Fix compilation error (logging macros)
This commit is contained in:
parent
c8b4612f66
commit
98a450ad77
@ -267,4 +267,21 @@ void DumpStackTrace() {
|
||||
#endif
|
||||
}
|
||||
|
||||
QDebug CreateLoggerFatal() { return qCreateLogger(Fatal); }
|
||||
QDebug CreateLoggerError() { return qCreateLogger(Error); }
|
||||
|
||||
#ifdef QT_NO_WARNING_OUTPUT
|
||||
QNoDebug CreateLoggerWarning() { return QNoDebug(); }
|
||||
#else
|
||||
QDebug CreateLoggerWarning() { return qCreateLogger(Warning); }
|
||||
#endif // QT_NO_WARNING_OUTPUT
|
||||
|
||||
#ifdef QT_NO_DEBUG_OUTPUT
|
||||
QNoDebug CreateLoggerInfo() { return QNoDebug(); }
|
||||
QNoDebug CreateLoggerDebug() { return QNoDebug(); }
|
||||
#else
|
||||
QDebug CreateLoggerInfo() { return qCreateLogger(Info); }
|
||||
QDebug CreateLoggerDebug() { return qCreateLogger(Debug); }
|
||||
#endif // QT_NO_DEBUG_OUTPUT
|
||||
|
||||
} // namespace logging
|
||||
|
@ -61,21 +61,21 @@ void DumpStackTrace();
|
||||
QString ParsePrettyFunction(const char* pretty_function);
|
||||
QDebug CreateLogger(Level level, const QString& class_name, int line);
|
||||
|
||||
QDebug CreateLoggerFatal() { return qCreateLogger(Fatal); }
|
||||
QDebug CreateLoggerError() { return qCreateLogger(Error); }
|
||||
QDebug CreateLoggerFatal();
|
||||
QDebug CreateLoggerError();
|
||||
|
||||
#ifdef QT_NO_WARNING_OUTPUT
|
||||
QNoDebug CreateLoggerWarning() { return QNoDebug(); }
|
||||
QNoDebug CreateLoggerWarning();
|
||||
#else
|
||||
QDebug CreateLoggerWarning() { return qCreateLogger(Warning); }
|
||||
QDebug CreateLoggerWarning();
|
||||
#endif // QT_NO_WARNING_OUTPUT
|
||||
|
||||
#ifdef QT_NO_DEBUG_OUTPUT
|
||||
QNoDebug CreateLoggerInfo() { return QNoDebug(); }
|
||||
QNoDebug CreateLoggerDebug() { return QNoDebug(); }
|
||||
QNoDebug CreateLoggerInfo();
|
||||
QNoDebug CreateLoggerDebug();
|
||||
#else
|
||||
QDebug CreateLoggerInfo() { return qCreateLogger(Info); }
|
||||
QDebug CreateLoggerDebug() { return qCreateLogger(Debug); }
|
||||
QDebug CreateLoggerInfo();
|
||||
QDebug CreateLoggerDebug();
|
||||
#endif // QT_NO_DEBUG_OUTPUT
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user