QtNetwork: port the last remaining Q_FOREACH loop and add QT_NO_FOREACH
Port the last remaining Q_FOREACH user in QtNetwork to C++11 range-for and mark the library as Q_FOREACH-free, using QT_NO_FOREACH. Change-Id: I8977f151e3575422fc1154677e035274c018d66f Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>bb10
parent
ac2ccb1559
commit
656e6ae9ea
|
|
@ -1,7 +1,7 @@
|
|||
TARGET = QtNetwork
|
||||
QT = core-private
|
||||
|
||||
DEFINES += QT_NO_USING_NAMESPACE
|
||||
DEFINES += QT_NO_USING_NAMESPACE QT_NO_FOREACH
|
||||
#DEFINES += QLOCALSERVER_DEBUG QLOCALSOCKET_DEBUG
|
||||
#DEFINES += QNETWORKDISKCACHE_DEBUG
|
||||
#DEFINES += QSSLSOCKET_DEBUG
|
||||
|
|
|
|||
|
|
@ -207,7 +207,7 @@ init_context:
|
|||
QList<QSslCipher> ciphers = sslContext->sslConfiguration.ciphers();
|
||||
if (ciphers.isEmpty())
|
||||
ciphers = QSslSocketPrivate::defaultCiphers();
|
||||
foreach (const QSslCipher &cipher, ciphers) {
|
||||
for (const QSslCipher &cipher : qAsConst(ciphers)) {
|
||||
if (first)
|
||||
first = false;
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in New Issue