summaryrefslogtreecommitdiffstats
path: root/src/oauth/qoauthhttpserverreplyhandler.cpp
diff options
context:
space:
mode:
authorAhmad Samir <a.samirh78@gmail.com>2023-07-12 03:08:01 +0300
committerAhmad Samir <a.samirh78@gmail.com>2023-07-12 22:47:58 +0300
commit5ad5773f2388bfa74b16fd9108f3f00cbed06b43 (patch)
treebd3dd62866728df41422eb734493c3c5232b2efd /src/oauth/qoauthhttpserverreplyhandler.cpp
parentfbd825bf9e7da16aed8ab190652ad56cd316cc0e (diff)
Build with QT_NO_CONTEXTLESS_CONNECT
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: If6e8d202b114d053933fc1dcab5b99377c67a879 Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/oauth/qoauthhttpserverreplyhandler.cpp')
-rw-r--r--src/oauth/qoauthhttpserverreplyhandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/oauth/qoauthhttpserverreplyhandler.cpp b/src/oauth/qoauthhttpserverreplyhandler.cpp
index 5dbcf4b..7a63e5f 100644
--- a/src/oauth/qoauthhttpserverreplyhandler.cpp
+++ b/src/oauth/qoauthhttpserverreplyhandler.cpp
@@ -29,7 +29,7 @@ QOAuthHttpServerReplyHandlerPrivate::QOAuthHttpServerReplyHandlerPrivate(
QOAuthHttpServerReplyHandler *p) :
text(QObject::tr("Callback received. Feel free to close this page.")), q_ptr(p)
{
- QObject::connect(&httpServer, &QTcpServer::newConnection,
+ QObject::connect(&httpServer, &QTcpServer::newConnection, q_ptr,
[this]() { _q_clientConnected(); });
}
@@ -44,7 +44,7 @@ void QOAuthHttpServerReplyHandlerPrivate::_q_clientConnected()
QTcpSocket *socket = httpServer.nextPendingConnection();
QObject::connect(socket, &QTcpSocket::disconnected, socket, &QTcpSocket::deleteLater);
- QObject::connect(socket, &QTcpSocket::readyRead,
+ QObject::connect(socket, &QTcpSocket::readyRead, q_ptr,
[this, socket]() { _q_readData(socket); });
}