summaryrefslogtreecommitdiffstats
path: root/tests/auto/network/kernel
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2021-06-30 10:57:17 +0200
committerMarc Mutz <marc.mutz@kdab.com>2021-06-30 23:13:28 +0200
commit0ed1f8b54e42fc731eae302cdd1b06e955f01be9 (patch)
treee4949f1ebc255fff18e4366eaa819e599d262d66 /tests/auto/network/kernel
parent8c97f514253bf130a774822f397db4a7263d572a (diff)
tests: fix deprecated implicit capture of this via [=]
Fixes compiler warnings: warning: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20 [-Wdeprecated] Change-Id: Ia7cf50f491e92f39162c69afb2a8320afedba056 Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'tests/auto/network/kernel')
-rw-r--r--tests/auto/network/kernel/qhostinfo/tst_qhostinfo.cpp2
1 files changed, 1 insertions, 1 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);
});