QMessagePattern: Fix indentation and use QVector for a large struct
struct BacktraceParams is too big (more than one pointer), so using it with QList is inefficient. Let's use QVector instead. Change-Id: Id75834dab9ed466e94c7ffff144572c1eb3fb0e5 Reviewed-by: Marc Mutz <marc.mutz@kdab.com> Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
This commit is contained in:
parent
16fa29352b
commit
721d7d383d
@ -986,15 +986,18 @@ struct QMessagePattern {
|
||||
#endif
|
||||
#ifdef QLOGGING_HAVE_BACKTRACE
|
||||
struct BacktraceParams {
|
||||
QString backtraceSeparator;
|
||||
int backtraceDepth;
|
||||
QString backtraceSeparator;
|
||||
int backtraceDepth;
|
||||
};
|
||||
QList<BacktraceParams> backtraceArgs; // backtrace argumens in sequence of %{backtrace
|
||||
QVector<BacktraceParams> backtraceArgs; // backtrace argumens in sequence of %{backtrace
|
||||
#endif
|
||||
|
||||
bool fromEnvironment;
|
||||
static QBasicMutex mutex;
|
||||
};
|
||||
#ifdef QLOGGING_HAVE_BACKTRACE
|
||||
Q_DECLARE_TYPEINFO(QMessagePattern::BacktraceParams, Q_MOVABLE_TYPE);
|
||||
#endif
|
||||
|
||||
QBasicMutex QMessagePattern::mutex;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user