Fix warning and pointer initialization
This commit is contained in:
parent
eaaf2e0188
commit
64a5ffbd37
@ -129,7 +129,7 @@ void TcpServer::sendData(const QUuid &clientId, const QByteArray &data)
|
|||||||
qCDebug(dcTcpServerTraffic()) << "Sending to client" << clientId.toString() << data;
|
qCDebug(dcTcpServerTraffic()) << "Sending to client" << clientId.toString() << data;
|
||||||
client->write(data + '\n');
|
client->write(data + '\n');
|
||||||
} else {
|
} else {
|
||||||
qCWarning(dcTcpServer()) << "Client" << clientId << "unknown to this transport";
|
qCWarning(dcTcpServer()) << "Client" << clientId.toString() << "unknown to this transport";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -90,9 +90,9 @@ public:
|
|||||||
void terminateClientConnection(const QUuid &clientId) override;
|
void terminateClientConnection(const QUuid &clientId) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QTimer *m_timer;
|
QTimer *m_timer = nullptr;
|
||||||
|
|
||||||
SslServer * m_server;
|
SslServer *m_server = nullptr;
|
||||||
QHash<QUuid, QTcpSocket *> m_clientList;
|
QHash<QUuid, QTcpSocket *> m_clientList;
|
||||||
|
|
||||||
QSslConfiguration m_sslConfig;
|
QSslConfiguration m_sslConfig;
|
||||||
|
|||||||
Reference in New Issue
Block a user