QMessageLogger: simplify the backtrace code
By moving one of the #if, we can remove the other. Change-Id: I167cf466ef965758e5e8fffd94f8f8169599e3c6 Reviewed-by: Ahmad Samir <a.samirh78@gmail.com> Reviewed-by: Marc Mutz <marc.mutz@qt.io>
This commit is contained in:
parent
db5163dca9
commit
5ca803a3d0
@ -1116,12 +1116,12 @@ struct QMessagePattern
|
||||
#ifndef QT_BOOTSTRAPPED
|
||||
std::chrono::steady_clock::time_point appStartTime = std::chrono::steady_clock::now();
|
||||
#endif
|
||||
#ifdef QLOGGING_HAVE_BACKTRACE
|
||||
struct BacktraceParams
|
||||
{
|
||||
QString backtraceSeparator;
|
||||
int backtraceDepth;
|
||||
};
|
||||
#ifdef QLOGGING_HAVE_BACKTRACE
|
||||
QList<BacktraceParams> backtraceArgs; // backtrace arguments in sequence of %{backtrace
|
||||
int maxBacktraceDepth = 0;
|
||||
#endif
|
||||
@ -1141,9 +1141,7 @@ struct QMessagePattern
|
||||
}
|
||||
#endif
|
||||
};
|
||||
#ifdef QLOGGING_HAVE_BACKTRACE
|
||||
Q_DECLARE_TYPEINFO(QMessagePattern::BacktraceParams, Q_RELOCATABLE_TYPE);
|
||||
#endif
|
||||
|
||||
Q_CONSTINIT QBasicMutex QMessagePattern::mutex;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user