summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@digia.com>2014-03-07 15:31:21 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-20 19:01:53 +0100
commitba4d1547372b7f3c1d7d4ea1cbf6785cfca90755 (patch)
tree50a08fd65da02bdaf9e2121172a498585e56f3d4 /tests/auto
parent07fef5f3ffd83ebece224e7fccac6749b3fc6cf7 (diff)
Logging: Remove PatternFlag::Invalid from QLoggingRule
The flag is not orthogonal to the rest, and e.g. checking with flags & Invalid will fail. Rather make it explicit by comparing with 0. Change-Id: I428d5e71f5ecd05f61d543aaa78532548ef93d5a Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/corelib/io/qloggingregistry/tst_qloggingregistry.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/corelib/io/qloggingregistry/tst_qloggingregistry.cpp b/tests/auto/corelib/io/qloggingregistry/tst_qloggingregistry.cpp
index 32ce91dc6a..3064fd1320 100644
--- a/tests/auto/corelib/io/qloggingregistry/tst_qloggingregistry.cpp
+++ b/tests/auto/corelib/io/qloggingregistry/tst_qloggingregistry.cpp
@@ -172,7 +172,7 @@ private slots:
QLoggingRule rule(QStringRef(&pattern), true);
LoggingRuleState state = Invalid;
- if (rule.flags != QLoggingRule::Invalid) {
+ if (rule.flags != 0) {
switch (rule.pass(category, msgType)) {
case -1: QFAIL("Shoudn't happen, we set pattern to true"); break;
case 0: state = NoMatch; break;