summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/tools/qhashfunctions/tst_qhashfunctions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/corelib/tools/qhashfunctions/tst_qhashfunctions.cpp')
-rw-r--r--tests/auto/corelib/tools/qhashfunctions/tst_qhashfunctions.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/tests/auto/corelib/tools/qhashfunctions/tst_qhashfunctions.cpp b/tests/auto/corelib/tools/qhashfunctions/tst_qhashfunctions.cpp
index 13f9b46eaa..f04e1bdb12 100644
--- a/tests/auto/corelib/tools/qhashfunctions/tst_qhashfunctions.cpp
+++ b/tests/auto/corelib/tools/qhashfunctions/tst_qhashfunctions.cpp
@@ -69,12 +69,8 @@ private Q_SLOTS:
void tst_QHashFunctions::consistent()
{
// QString-like
- {
- const QString s = QStringLiteral("abcdefghijklmnopqrstuvxyz").repeated(16);
-
- QCOMPARE(qHash(s), qHash(QStringRef(&s)));
- QCOMPARE(qHash(s), qHash(QStringView(s)));
- }
+ const QString s = QStringLiteral("abcdefghijklmnopqrstuvxyz").repeated(16);
+ QCOMPARE(qHash(s), qHash(QStringView(s)));
}
void tst_QHashFunctions::initTestCase()
@@ -176,10 +172,6 @@ void tst_QHashFunctions::qhash_of_empty_and_null_qstring()
QCOMPARE(null, empty);
QCOMPARE(qHash(null, seed), qHash(empty, seed));
- QStringRef nullRef, emptyRef(&empty);
- QCOMPARE(nullRef, emptyRef);
- QCOMPARE(qHash(nullRef, seed), qHash(emptyRef, seed));
-
QStringView nullView, emptyView(empty);
QCOMPARE(nullView, emptyView);
QCOMPARE(qHash(nullView, seed), qHash(emptyView, seed));