summaryrefslogtreecommitdiffstats
path: root/examples/scxml/ftpclient/ftpdatachannel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/scxml/ftpclient/ftpdatachannel.cpp')
-rw-r--r--examples/scxml/ftpclient/ftpdatachannel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/scxml/ftpclient/ftpdatachannel.cpp b/examples/scxml/ftpclient/ftpdatachannel.cpp
index ad7b234..83ef872 100644
--- a/examples/scxml/ftpclient/ftpdatachannel.cpp
+++ b/examples/scxml/ftpclient/ftpdatachannel.cpp
@@ -1,4 +1,4 @@
-// Copyright (C) 2016 The Qt Company Ltd.
+// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#include "ftpdatachannel.h"
@@ -7,7 +7,7 @@ FtpDataChannel::FtpDataChannel(QObject *parent) : QObject(parent)
{
connect(&m_server, &QTcpServer::newConnection, this, [this]() {
m_socket.reset(m_server.nextPendingConnection());
- connect(m_socket.data(), &QTcpSocket::readyRead, [this]() {
+ connect(m_socket.get(), &QTcpSocket::readyRead, this, [this]() {
emit dataReceived(m_socket->readAll());
});
});