From ba4d1547372b7f3c1d7d4ea1cbf6785cfca90755 Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Fri, 7 Mar 2014 15:31:21 +0100 Subject: 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 --- tests/auto/corelib/io/qloggingregistry/tst_qloggingregistry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/auto') 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; -- cgit v1.2.3