QAbstractSocket: Use constructor delegation
Change-Id: Ib749ff46dd3c9d44c1a3c6273eadd78fdf0f837e Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io> Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
This commit is contained in:
parent
aa3226bab3
commit
291b3cebb9
@ -1465,13 +1465,8 @@ QAbstractSocket::QAbstractSocket(SocketType socketType,
|
|||||||
\sa socketType(), QTcpSocket, QUdpSocket
|
\sa socketType(), QTcpSocket, QUdpSocket
|
||||||
*/
|
*/
|
||||||
QAbstractSocket::QAbstractSocket(SocketType socketType, QObject *parent)
|
QAbstractSocket::QAbstractSocket(SocketType socketType, QObject *parent)
|
||||||
: QIODevice(*new QAbstractSocketPrivate, parent)
|
: QAbstractSocket(socketType, *new QAbstractSocketPrivate, parent)
|
||||||
{
|
{
|
||||||
Q_D(QAbstractSocket);
|
|
||||||
#if defined(QABSTRACTSOCKET_DEBUG)
|
|
||||||
qDebug("QAbstractSocket::QAbstractSocket(%p)", parent);
|
|
||||||
#endif
|
|
||||||
d->socketType = socketType;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
Loading…
Reference in New Issue
Block a user