diff --git a/tests/manual/qsslsocket/main.cpp b/tests/manual/qsslsocket/main.cpp index 2894b3c1fa..e7f5e91997 100644 --- a/tests/manual/qsslsocket/main.cpp +++ b/tests/manual/qsslsocket/main.cpp @@ -30,14 +30,15 @@ void tst_QSslSocket::nextProtocolNegotiation_data() QTest::addColumn("expectedProtocol"); QTest::addColumn("expectedStatus"); - QList hosts = QList() - << QStringLiteral("www.google.com") - << QStringLiteral("www.facebook.com") - << QStringLiteral("www.twitter.com") - << QStringLiteral("graph.facebook.com") - << QStringLiteral("api.twitter.com"); + const QString hosts[] = { + QStringLiteral("www.google.com"), + QStringLiteral("www.facebook.com"), + QStringLiteral("www.twitter.com"), + QStringLiteral("graph.facebook.com"), + QStringLiteral("api.twitter.com"), + }; - foreach (QString host, hosts) { + for (const QString &host : hosts) { QByteArray tag = host.toLocal8Bit(); tag.append("-none"); QTest::newRow(tag)