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>bb10
parent
4f3142bfce
commit
2c65f2cd11
|
|
@ -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…
Reference in New Issue