From b2ee684a13d01363c121d3ba597feaf274786fdb Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Thu, 9 Apr 2020 16:27:12 +0200 Subject: Remove QRegExp support from QString and StringList Replacement methods do now exist in QRegExp, or for QRegularExpression when porting to it. Remove all autotests associated with the old methods. Change-Id: I3ff1e0da4b53adb64d5a48a30aecd8b960f5e633 Reviewed-by: Thiago Macieira --- tests/auto/corelib/text/qregexp/tst_qregexp.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/auto/corelib/text/qregexp') diff --git a/tests/auto/corelib/text/qregexp/tst_qregexp.cpp b/tests/auto/corelib/text/qregexp/tst_qregexp.cpp index d1dad01abb..b043d023ea 100644 --- a/tests/auto/corelib/text/qregexp/tst_qregexp.cpp +++ b/tests/auto/corelib/text/qregexp/tst_qregexp.cpp @@ -895,19 +895,19 @@ void tst_QRegExp::testInvalidWildcard(){ void tst_QRegExp::caretAnchoredOptimization() { QString s = "---babnana----"; - s.replace( QRegExp("^-*|(-*)$"), "" ); + s = QRegExp("^-*|(-*)$").replaceIn(s, "" ); QCOMPARE(s, QLatin1String("babnana")); s = "---babnana----"; - s.replace( QRegExp("^-*|(-{0,})$"), "" ); + s = QRegExp("^-*|(-{0,})$").replaceIn(s, "" ); QCOMPARE(s, QLatin1String("babnana")); s = "---babnana----"; - s.replace( QRegExp("^-*|(-{1,})$"), "" ); + s = QRegExp("^-*|(-{1,})$").replaceIn(s, "" ); QCOMPARE(s, QLatin1String("babnana")); s = "---babnana----"; - s.replace( QRegExp("^-*|(-+)$"), "" ); + s = QRegExp("^-*|(-+)$").replaceIn(s, "" ); QCOMPARE(s, QLatin1String("babnana")); } -- cgit v1.2.3