diff options
author | Marc Mutz <marc.mutz@qt.io> | 2023-12-14 15:49:19 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2024-01-09 18:54:46 +0100 |
commit | 2c65f2cd11e1529b028ed65e08eb672364f777fa (patch) | |
tree | 5e7e15d8490c5d602440e6d75ba1f8aa117369d7 /tests/auto/network | |
parent | 4f3142bfce0c64d023299f142d14e60ec577b698 (diff) |
tst_QHttpHeaders: don't convert QAnyStringView
QList::contains() supports heterogeneous lookups, so just pass the QAnyStringView.
Pick-to: 6.7
Task-number: QTBUG-107042
Change-Id: I442c2a6271953859dc47f9c3bd5cbc0074f55a9f
Reviewed-by: Juha Vuolle <juha.vuolle@qt.io>
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'tests/auto/network')
-rw-r--r-- | tests/auto/network/access/qhttpheaders/tst_qhttpheaders.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/network/access/qhttpheaders/tst_qhttpheaders.cpp b/tests/auto/network/access/qhttpheaders/tst_qhttpheaders.cpp index 02fb8cac0a..84f382be38 100644 --- a/tests/auto/network/access/qhttpheaders/tst_qhttpheaders.cpp +++ b/tests/auto/network/access/qhttpheaders/tst_qhttpheaders.cpp @@ -203,12 +203,12 @@ void tst_QHttpHeaders::accessors() h1.append(n1, v1); QCOMPARE(h1.names().size(), 1); QCOMPARE(h1.size(), 1); - QVERIFY(h1.names().contains(n1.toString().toLatin1())); + QVERIFY(h1.names().contains(n1)); h1.append(n2, v2); QCOMPARE(h1.names().size(), 2); QCOMPARE(h1.size(), 2); - QVERIFY(h1.names().contains(n1.toString().toLatin1())); - QVERIFY(h1.names().contains(n2.toString().toLatin1())); + QVERIFY(h1.names().contains(n1)); + QVERIFY(h1.names().contains(n2)); h1.append(n1, v1); h1.append(n1, v1); QCOMPARE(h1.size(), 4); |