summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimur Pocheptsov <timur.pocheptsov@qt.io>2020-03-24 11:41:51 +0100
committerTimur Pocheptsov <timur.pocheptsov@qt.io>2020-03-24 12:07:07 +0100
commit29816a3aaa3f368422a3b19983add62673bb6960 (patch)
treeec8c278812adbf565d3b3d32dd8ebccbc5ec554c
parentae9a8826d73fa689e81c43038bb13226c9cb9ac7 (diff)
downloadqtlocation-29816a3aaa3f368422a3b19983add62673bb6960.tar.gz
qtlocation - use errorOccured signal for QTcpSocket
and remove ugly cast Task-number: QTBUG-82605 Change-Id: I8220ead34731b488f8350229447e7f2e723f9c11 Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
-rw-r--r--src/positioningquick/qdeclarativepositionsource.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/positioningquick/qdeclarativepositionsource.cpp b/src/positioningquick/qdeclarativepositionsource.cpp
index d6c62147..cf160541 100644
--- a/src/positioningquick/qdeclarativepositionsource.cpp
+++ b/src/positioningquick/qdeclarativepositionsource.cpp
@@ -280,7 +280,7 @@ void QDeclarativePositionSource::setNmeaSource(const QUrl &nmeaSource)
delete m_nmeaSocket;
m_nmeaSocket = new QTcpSocket();
- connect(m_nmeaSocket, static_cast<void (QTcpSocket::*)(QAbstractSocket::SocketError)> (&QAbstractSocket::error),
+ connect(m_nmeaSocket, &QAbstractSocket::errorOccurred,
this, &QDeclarativePositionSource::socketError);
connect(m_nmeaSocket, &QTcpSocket::connected,
this, &QDeclarativePositionSource::socketConnected);