summaryrefslogtreecommitdiff
path: root/protocols/Discord/src/gateway.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-02-22 19:49:37 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-02-22 19:49:37 +0300
commitc7b17549ed7029682d9012d3d53d3e34523f699f (patch)
tree1e53327716515c39d928927f49532c7a7b3ee2f6 /protocols/Discord/src/gateway.cpp
parent8f0458f54c32f68512573abb775384d4be114a08 (diff)
Discord:
- support for channel creation & destruction on the fly - code cleaning
Diffstat (limited to 'protocols/Discord/src/gateway.cpp')
-rw-r--r--protocols/Discord/src/gateway.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/Discord/src/gateway.cpp b/protocols/Discord/src/gateway.cpp
index 6eca5b1fe9..51a4b7344f 100644
--- a/protocols/Discord/src/gateway.cpp
+++ b/protocols/Discord/src/gateway.cpp
@@ -72,7 +72,7 @@ struct WSHeader
void CDiscordProto::GatewaySend(const JSONNode &pRoot, int opCode)
{
- if (m_hGatewayConnection == NULL)
+ if (m_hGatewayConnection == nullptr)
return;
json_string szText = pRoot.write();
@@ -153,7 +153,7 @@ void CDiscordProto::GatewayThreadWorker()
else conn.wPort = 443;
m_hGatewayConnection = Netlib_OpenConnection(m_hGatewayNetlibUser, &conn);
- if (m_hGatewayConnection == NULL) {
+ if (m_hGatewayConnection == nullptr) {
debugLogA("Gateway connection failed to connect to %s:%d, exiting", m_szGateway.c_str(), conn.wPort);
return;
}
@@ -292,7 +292,7 @@ void CDiscordProto::GatewayThreadWorker()
}
Netlib_CloseHandle(m_hGatewayConnection);
- m_hGatewayConnection = NULL;
+ m_hGatewayConnection = nullptr;
}
//////////////////////////////////////////////////////////////////////////////////////