diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-06-13 11:16:14 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-07-11 14:40:29 +0200 |
commit | 2d8d738657b64c853316b605176e002b9e616fcf (patch) | |
tree | f0df837fa75899201edfd7c0f78c6407539a7c95 /src/testlib/qtestlog.cpp | |
parent | fc15cdb4d0a50f8bf021a93d97435bddee351d0f (diff) |
QTestLib: Use member initialization
Apply Fixits by Qt Creator with some amendments.
Task-number: QTBUG-69413
Change-Id: Iba0834dc89cbfc215acc5873f31fa6eeed74177d
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
Diffstat (limited to 'src/testlib/qtestlog.cpp')
-rw-r--r-- | src/testlib/qtestlog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testlib/qtestlog.cpp b/src/testlib/qtestlog.cpp index 14543c3cde..ddebf1105f 100644 --- a/src/testlib/qtestlog.cpp +++ b/src/testlib/qtestlog.cpp @@ -111,7 +111,7 @@ namespace QTest { struct IgnoreResultList { inline IgnoreResultList(QtMsgType tp, const QVariant &patternIn) - : type(tp), pattern(patternIn), next(0) {} + : type(tp), pattern(patternIn) {} static inline void clearList(IgnoreResultList *&list) { @@ -163,7 +163,7 @@ namespace QTest { QtMsgType type; QVariant pattern; - IgnoreResultList *next; + IgnoreResultList *next = nullptr; }; static IgnoreResultList *ignoreResultList = 0; |