summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib
diff options
context:
space:
mode:
authorAnton Kudryavtsev <anton.kudryavtsev@corp.mail.ru>2018-01-31 20:26:38 +0300
committerAnton Kudryavtsev <antkudr@mail.ru>2018-02-02 14:49:15 +0000
commit0c0ee82bff31ff2733c5229cf39f678f80b2e7e6 (patch)
treee88e0d623d39b2095d41d6b5381335fad4e2073f /tests/auto/corelib
parent5c60e4b8f9cc88e48f5e7652eefe90e1366ae23d (diff)
QString:: add remove() overload taking QLatin1String
[ChangeLog][QtCore][QString] Added remove() overload taking QLatin1String Change-Id: I11ddb8b8603144effe44f89d0d02e131a255122c Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/corelib')
-rw-r--r--tests/auto/corelib/tools/qstring/tst_qstring.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/corelib/tools/qstring/tst_qstring.cpp b/tests/auto/corelib/tools/qstring/tst_qstring.cpp
index 98af7748c5..90cd70f43e 100644
--- a/tests/auto/corelib/tools/qstring/tst_qstring.cpp
+++ b/tests/auto/corelib/tools/qstring/tst_qstring.cpp
@@ -2994,6 +2994,12 @@ void tst_QString::remove_string()
QString s5 = string;
s5.replace( QRegExp(before, cs, QRegExp::FixedString), after );
QTEST( s5, "result" );
+
+ if (QtPrivate::isLatin1(before)) {
+ QString s6 = string;
+ s6.remove( QLatin1String(before.toLatin1()), cs );
+ QTEST( s6, "result" );
+ }
} else {
QCOMPARE( 0, 0 ); // shut Qt Test
}