Initialize some member variables in qsocks5socketengine.cpp
Axivion warning: "Compiler-generated constructor leaves some fields uninitialized." Initialize the ports as 0 and the udpSocket as nullptr. Task-number: QTBUG-125026 Pick-to: 6.7 6.5 Change-Id: Ifa021aceea35e7c5e8c62cd2d6f651d422d629a2 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io> (cherry picked from commit 0e6d0af9af65ff41ea7c07cd7b53c365d61ca643) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
10d7da6168
commit
22c5f8974c
@ -257,9 +257,9 @@ struct QSocks5ConnectData : public QSocks5Data
|
||||
struct QSocks5BindData : public QSocks5Data
|
||||
{
|
||||
QHostAddress localAddress;
|
||||
quint16 localPort;
|
||||
quint16 localPort = 0;
|
||||
QHostAddress peerAddress;
|
||||
quint16 peerPort;
|
||||
quint16 peerPort = 0;
|
||||
QElapsedTimer timeStamp;
|
||||
};
|
||||
|
||||
@ -267,15 +267,15 @@ struct QSocks5RevivedDatagram
|
||||
{
|
||||
QByteArray data;
|
||||
QHostAddress address;
|
||||
quint16 port;
|
||||
quint16 port = 0;
|
||||
};
|
||||
|
||||
#ifndef QT_NO_UDPSOCKET
|
||||
struct QSocks5UdpAssociateData : public QSocks5Data
|
||||
{
|
||||
QUdpSocket *udpSocket;
|
||||
QUdpSocket *udpSocket = nullptr;
|
||||
QHostAddress associateAddress;
|
||||
quint16 associatePort;
|
||||
quint16 associatePort = 0;
|
||||
QQueue<QSocks5RevivedDatagram> pendingDatagrams;
|
||||
};
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user