aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAhmad Samir <a.samirh78@gmail.com>2023-07-11 00:03:36 +0300
committerAhmad Samir <a.samirh78@gmail.com>2023-08-21 00:05:38 +0300
commit21ca922eeeab672896264c09df13c0a8f14b5358 (patch)
treebb1dfbb03270561525bde2e06fecfa6b2bea3e8d /src
parent726f02af3720c553bac79042a8d13be22f8f6772 (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')
-rw-r--r--src/coap/qcoapprotocol.cpp4
-rw-r--r--src/coap/qcoapqudpconnection.cpp6
2 files changed, 5 insertions, 5 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);
diff --git a/src/coap/qcoapqudpconnection.cpp b/src/coap/qcoapqudpconnection.cpp
index c21cd30..99a9461 100644
--- a/src/coap/qcoapqudpconnection.cpp
+++ b/src/coap/qcoapqudpconnection.cpp
@@ -68,7 +68,7 @@ QCoapQUdpConnection::QCoapQUdpConnection(QCoapQUdpConnectionPrivate &dd, QObject
if (isSecure()) {
#if QT_CONFIG(dtls)
- connect(this, &QCoapConnection::securityConfigurationChanged,
+ connect(this, &QCoapConnection::securityConfigurationChanged, this,
[this]() {
Q_D(QCoapQUdpConnection);
d->setSecurityConfiguration(securityConfiguration());
@@ -121,11 +121,11 @@ void QCoapQUdpConnection::createSocket()
d->udpSocket = new QUdpSocket(this);
- connect(d->udpSocket.data(), &QUdpSocket::readyRead, [this]() {
+ connect(d->udpSocket.data(), &QUdpSocket::readyRead, this, [this]() {
Q_D(QCoapQUdpConnection);
d->socketReadyRead();
});
- connect(d->udpSocket.data(), &QUdpSocket::errorOccurred,
+ connect(d->udpSocket.data(), &QUdpSocket::errorOccurred, this,
[this](QAbstractSocket::SocketError socketError) {
qCWarning(lcCoapConnection) << "CoAP UDP socket error" << socketError
<< socket()->errorString();