From ff41368749e3534cddc534ab58a891b2c07ce02f Mon Sep 17 00:00:00 2001 From: Rohan McGovern Date: Mon, 30 Apr 2012 10:18:59 +1000 Subject: Fixed compile for removal of const from QRegExp::indexIn Task-number: QTBUG-25064 Change-Id: I8adfe68a610a37b667803939553739d64a714c51 Reviewed-by: Toby Tomkins --- tests/auto/qscriptv8testsuite/tst_qscriptv8testsuite.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/auto/qscriptv8testsuite/tst_qscriptv8testsuite.cpp') diff --git a/tests/auto/qscriptv8testsuite/tst_qscriptv8testsuite.cpp b/tests/auto/qscriptv8testsuite/tst_qscriptv8testsuite.cpp index cfb78ad..32838a3 100644 --- a/tests/auto/qscriptv8testsuite/tst_qscriptv8testsuite.cpp +++ b/tests/auto/qscriptv8testsuite/tst_qscriptv8testsuite.cpp @@ -264,7 +264,7 @@ void tst_QScriptV8TestSuite::addTestExclusion(const QRegExp &rx, const QString & bool tst_QScriptV8TestSuite::isExcludedTest(const QString &testName, QString *message) const { for (int i = 0; i < testExclusions.size(); ++i) { - if (testExclusions.at(i).first.indexIn(testName) != -1) { + if (QRegExp(testExclusions.at(i).first).indexIn(testName) != -1) { if (message) *message = testExclusions.at(i).second; return true; -- cgit v1.2.1