diff options
author | Ahmad Samir <a.samirh78@gmail.com> | 2023-07-11 00:03:36 +0300 |
---|---|---|
committer | Ahmad Samir <a.samirh78@gmail.com> | 2023-08-21 00:05:38 +0300 |
commit | 21ca922eeeab672896264c09df13c0a8f14b5358 (patch) | |
tree | bb1dfbb03270561525bde2e06fecfa6b2bea3e8d /src/coap/qcoapprotocol.cpp | |
parent | 726f02af3720c553bac79042a8d13be22f8f6772 (diff) |
Build with QT_NO_CONTEXTLESS_CONNECT (add it to .cmake.conf)
This disables the 3-arg QObject::connect() overload:
QObject::connect(sender, signal, functor)
For details see:
https://lists.qt-project.org/pipermail/development/2023-July/044141.html
Change-Id: Ie9fe431feac6db6a8981b65fbc25bc8a1e352457
Reviewed-by: Sona Kurazyan <kurazyan.sona@gmail.com>
Diffstat (limited to 'src/coap/qcoapprotocol.cpp')
-rw-r--r-- | src/coap/qcoapprotocol.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/coap/qcoapprotocol.cpp b/src/coap/qcoapprotocol.cpp index eb499ed..7b6238a 100644 --- a/src/coap/qcoapprotocol.cpp +++ b/src/coap/qcoapprotocol.cpp @@ -166,12 +166,12 @@ void QCoapProtocol::sendRequest(QPointer<QCoapReply> reply, QCoapConnection *con internalRequest->setTimeout(maximumTimeout()); } - connect(internalRequest.data(), &QCoapInternalRequest::timeout, + connect(internalRequest.data(), &QCoapInternalRequest::timeout, this, [this](QCoapInternalRequest *request) { Q_D(QCoapProtocol); d->onRequestTimeout(request); }); - connect(internalRequest.data(), &QCoapInternalRequest::maxTransmissionSpanReached, + connect(internalRequest.data(), &QCoapInternalRequest::maxTransmissionSpanReached, this, [this](QCoapInternalRequest *request) { Q_D(QCoapProtocol); d->onRequestMaxTransmissionSpanReached(request); |