diff options
Diffstat (limited to 'tests/auto/network')
-rw-r--r-- | tests/auto/network/kernel/qhostinfo/tst_qhostinfo.cpp | 2 | ||||
-rw-r--r-- | tests/auto/network/socket/qudpsocket/tst_qudpsocket.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/network/kernel/qhostinfo/tst_qhostinfo.cpp b/tests/auto/network/kernel/qhostinfo/tst_qhostinfo.cpp index 5118584b5e..d907ea34aa 100644 --- a/tests/auto/network/kernel/qhostinfo/tst_qhostinfo.cpp +++ b/tests/auto/network/kernel/qhostinfo/tst_qhostinfo.cpp @@ -363,7 +363,7 @@ void tst_QHostInfo::lookupConnectToLambda() QFETCH(QString, addresses); lookupDone = false; - QHostInfo::lookupHost(hostname, [=](const QHostInfo &hostInfo) { + QHostInfo::lookupHost(hostname, [this](const QHostInfo &hostInfo) { resultsReady(hostInfo); }); diff --git a/tests/auto/network/socket/qudpsocket/tst_qudpsocket.cpp b/tests/auto/network/socket/qudpsocket/tst_qudpsocket.cpp index 1239e70ee3..456fe8d715 100644 --- a/tests/auto/network/socket/qudpsocket/tst_qudpsocket.cpp +++ b/tests/auto/network/socket/qudpsocket/tst_qudpsocket.cpp @@ -193,7 +193,7 @@ QNetworkInterface tst_QUdpSocket::interfaceForGroup(const QHostAddress &multicas if (!scope.isEmpty()) return QNetworkInterface::interfaceFromName(scope); - static QNetworkInterface ipv6if = [=]() { + static QNetworkInterface ipv6if = [&]() { // find any link local address in the allAddress list for (const QHostAddress &addr: qAsConst(allAddresses)) { if (addr.isLoopback()) |