tst_QHttpHeaders: don't convert QAnyStringView
QList::contains() supports heterogeneous lookups, so just pass the QAnyStringView. Task-number: QTBUG-107042 Change-Id: I442c2a6271953859dc47f9c3bd5cbc0074f55a9f Reviewed-by: Juha Vuolle <juha.vuolle@qt.io> Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io> (cherry picked from commit 2c65f2cd11e1529b028ed65e08eb672364f777fa) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
7c4e260164
commit
54dcacf5c0
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user