summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@digia.com>2014-02-25 15:44:54 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-13 13:26:36 +0100
commit19693362e7b345d417554c6497e5117f2b189be5 (patch)
tree70c43012ba53d23a47e84ff8d1361d7af65adeca /tests
parent2350c7e35c7b21ab86e54e43d1e1bfddb1746922 (diff)
Use QStringRef for parsing of logging rules
Use QStringRef to speed up the parsing of the left side of logging rules. Change-Id: Idd4d75496e3865d092f2802c45928a414c14c615 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests')
-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 5796b2f221..ba53df03b6 100644
--- a/tests/auto/corelib/io/qloggingregistry/tst_qloggingregistry.cpp
+++ b/tests/auto/corelib/io/qloggingregistry/tst_qloggingregistry.cpp
@@ -169,7 +169,7 @@ private slots:
QFETCH(QtMsgType, msgType);
QFETCH(LoggingRuleState, result);
- QLoggingRule rule(pattern, true);
+ QLoggingRule rule(QStringRef(&pattern), true);
LoggingRuleState state = Invalid;
if (rule.flags != QLoggingRule::Invalid) {
switch (rule.pass(category, msgType)) {