1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-31 10:45:16 +01:00

Fix various Cppcheck warnings (#15081)

This commit is contained in:
Hielke Morsink
2021-07-24 23:41:50 +02:00
committed by GitHub
parent cd98ca0d8e
commit c887a049d2
11 changed files with 29 additions and 33 deletions

View File

@@ -631,11 +631,11 @@ public:
private:
explicit TcpSocket(SOCKET socket, const std::string& hostName, const std::string& ipAddress)
: _status(SocketStatus::Connected)
, _socket(socket)
, _ipAddress(ipAddress)
, _hostName(hostName)
{
_socket = socket;
_hostName = hostName;
_ipAddress = ipAddress;
_status = SocketStatus::Connected;
}
void CloseSocket()
@@ -833,10 +833,10 @@ public:
private:
explicit UdpSocket(SOCKET socket, const std::string& hostName)
: _status(SocketStatus::Connected)
, _socket(socket)
, _hostName(hostName)
{
_socket = socket;
_hostName = hostName;
_status = SocketStatus::Connected;
}
SOCKET CreateSocket()