summaryrefslogtreecommitdiffstats
path: root/src/oauth/qoauth2authorizationcodeflow.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/qoauth2authorizationcodeflow.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/qoauth2authorizationcodeflow.cpp')
-rw-r--r--src/oauth/qoauth2authorizationcodeflow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/oauth/qoauth2authorizationcodeflow.cpp b/src/oauth/qoauth2authorizationcodeflow.cpp
index aeae061..5738473 100644
--- a/src/oauth/qoauth2authorizationcodeflow.cpp
+++ b/src/oauth/qoauth2authorizationcodeflow.cpp
@@ -349,7 +349,7 @@ void QOAuth2AuthorizationCodeFlow::refreshAccessToken()
QNetworkReply *reply = d->currentReply.data();
QAbstractOAuthReplyHandler *handler = replyHandler();
- connect(reply, &QNetworkReply::finished,
+ connect(reply, &QNetworkReply::finished, handler,
[handler, reply]() { handler->networkReplyFinished(reply); });
connect(reply, &QNetworkReply::finished, reply, &QNetworkReply::deleteLater);
QObjectPrivate::connect(d->replyHandler.data(), &QAbstractOAuthReplyHandler::tokensReceived, d,
@@ -430,7 +430,7 @@ void QOAuth2AuthorizationCodeFlow::requestAccessToken(const QString &code)
QNetworkReply *reply = d->networkAccessManager()->post(request, data.toUtf8());
d->currentReply = reply;
QAbstractOAuthReplyHandler *handler = replyHandler();
- QObject::connect(reply, &QNetworkReply::finished,
+ QObject::connect(reply, &QNetworkReply::finished, handler,
[handler, reply] { handler->networkReplyFinished(reply); });
connect(reply, &QNetworkReply::finished, reply, &QNetworkReply::deleteLater);
QObjectPrivate::connect(d->replyHandler.data(), &QAbstractOAuthReplyHandler::tokensReceived, d,