summaryrefslogtreecommitdiffstats
path: root/src/oauth/qoauthhttpserverreplyhandler.cpp
diff options
context:
space:
mode:
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 c39f051..0748acf 100644
--- a/src/oauth/qoauthhttpserverreplyhandler.cpp
+++ b/src/oauth/qoauthhttpserverreplyhandler.cpp
@@ -52,7 +52,7 @@ QOAuthHttpServerReplyHandlerPrivate::QOAuthHttpServerReplyHandlerPrivate(
text(QObject::tr("Callback received. Feel free to close this page.")), q_ptr(p)
{
QObject::connect(&httpServer, &QTcpServer::newConnection,
- std::bind(&QOAuthHttpServerReplyHandlerPrivate::_q_clientConnected, this));
+ [this]() { _q_clientConnected(); });
}
QOAuthHttpServerReplyHandlerPrivate::~QOAuthHttpServerReplyHandlerPrivate()
@@ -67,7 +67,7 @@ void QOAuthHttpServerReplyHandlerPrivate::_q_clientConnected()
QObject::connect(socket, &QTcpSocket::disconnected, socket, &QTcpSocket::deleteLater);
QObject::connect(socket, &QTcpSocket::readyRead,
- std::bind(&QOAuthHttpServerReplyHandlerPrivate::_q_readData, this, socket));
+ [this, socket]() { _q_readData(socket); });
}
void QOAuthHttpServerReplyHandlerPrivate::_q_readData(QTcpSocket *socket)