TraversalClient: In-class initialize members where applicable

This commit is contained in:
Lioncash
2018-04-16 16:24:09 -04:00
parent ca6a2970ea
commit 1b8ad49d1e
2 changed files with 9 additions and 10 deletions

View File

@ -22,8 +22,7 @@ static void GetRandomishBytes(u8* buf, size_t size)
}
TraversalClient::TraversalClient(ENetHost* netHost, const std::string& server, const u16 port)
: m_NetHost(netHost), m_Client(nullptr), m_ConnectRequestId(0), m_PendingConnect(false),
m_Server(server), m_port(port), m_PingTime(0)
: m_NetHost(netHost), m_Server(server), m_port(port)
{
netHost->intercept = TraversalClient::InterceptCallback;