diff options
author | Jesus Fernandez <jesus.fernandez@qt.io> | 2018-08-10 12:48:47 +0200 |
---|---|---|
committer | Jesus Fernandez <Jesus.Fernandez@qt.io> | 2018-08-14 08:30:14 +0000 |
commit | 5425435759242367fb40f90c4aef5af3e24e2854 (patch) | |
tree | a9d46275001f2c82121333b52d28ce42efd9cb9c /src/websockets/qwebsocket.cpp | |
parent | 85e345a38709026d4d82c67b9016338675851249 (diff) | |
download | qtwebsockets-5425435759242367fb40f90c4aef5af3e24e2854.tar.gz |
Use QObjectPrivate::q_ptr instead of shadowing it
Some private classes had a q_ptr pointer shadowing
the QObjectPrivate::q_ptr pointer. Q_Q casts the QObjectPrivate::q_ptr
pointer to match the public class so there is no need to store a
different pointer.
Change-Id: I8f5c4323b1dcf45a9796c0dd9f522bdbc63add18
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/websockets/qwebsocket.cpp')
-rw-r--r-- | src/websockets/qwebsocket.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/websockets/qwebsocket.cpp b/src/websockets/qwebsocket.cpp index b9c6cc0..ade1eb4 100644 --- a/src/websockets/qwebsocket.cpp +++ b/src/websockets/qwebsocket.cpp @@ -297,7 +297,7 @@ QT_BEGIN_NAMESPACE QWebSocket::QWebSocket(const QString &origin, QWebSocketProtocol::Version version, QObject *parent) : - QObject(*(new QWebSocketPrivate(origin, version, this)), parent) + QObject(*(new QWebSocketPrivate(origin, version)), parent) { Q_D(QWebSocket); d->init(); @@ -340,7 +340,7 @@ QAbstractSocket::SocketError QWebSocket::error() const */ QWebSocket::QWebSocket(QTcpSocket *pTcpSocket, QWebSocketProtocol::Version version, QObject *parent) : - QObject(*(new QWebSocketPrivate(pTcpSocket, version, this)), parent) + QObject(*(new QWebSocketPrivate(pTcpSocket, version)), parent) { Q_D(QWebSocket); d->init(); |