Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@woboq.com>2017-09-28 11:54:27 +0300
committerOlivier Goffart <ogoffart@woboq.com>2017-09-28 11:55:28 +0300
commit1da398e6c65a2823eaa49f7fbbaa5f51ff24cef8 (patch)
tree3ea540c1e741a9d784cbc3e02544ef12dae6cfc0 /src/gui/creds
parent074cb132bbf446730b01be3491253bdeb422fec8 (diff)
OAuth: fix compilation with old gcc
We need to used QPointer::data in the signal slot connection Relates to pr #6065
Diffstat (limited to 'src/gui/creds')
-rw-r--r--src/gui/creds/oauth.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/creds/oauth.cpp b/src/gui/creds/oauth.cpp
index f06fe3a3c..85a13f4c1 100644
--- a/src/gui/creds/oauth.cpp
+++ b/src/gui/creds/oauth.cpp
@@ -65,8 +65,8 @@ void OAuth::start()
QObject::connect(&_server, &QTcpServer::newConnection, this, [this] {
while (QPointer<QTcpSocket> socket = _server.nextPendingConnection()) {
- QObject::connect(socket, &QTcpSocket::disconnected, socket, &QTcpSocket::deleteLater);
- QObject::connect(socket, &QIODevice::readyRead, this, [this, socket] {
+ QObject::connect(socket.data(), &QTcpSocket::disconnected, socket.data(), &QTcpSocket::deleteLater);
+ QObject::connect(socket.data(), &QIODevice::readyRead, this, [this, socket] {
QByteArray peek = socket->peek(qMin(socket->bytesAvailable(), 4000LL)); //The code should always be within the first 4K
if (peek.indexOf('\n') < 0)
return; // wait until we find a \n