From 19693362e7b345d417554c6497e5117f2b189be5 Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Tue, 25 Feb 2014 15:44:54 +0100 Subject: 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 Reviewed-by: Thiago Macieira --- 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 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)) { -- cgit v1.2.3