summaryrefslogtreecommitdiff
path: root/protocols/Discord/src/guilds.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Discord/src/guilds.cpp')
-rw-r--r--protocols/Discord/src/guilds.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Discord/src/guilds.cpp b/protocols/Discord/src/guilds.cpp
index f14caadf06..4b89937cd6 100644
--- a/protocols/Discord/src/guilds.cpp
+++ b/protocols/Discord/src/guilds.cpp
@@ -96,7 +96,7 @@ CDiscordUser* CDiscordProto::ProcessGuildChannel(CDiscordGuild *pGuild, const JS
{
// filter our all channels but the text ones
if (pch["type"].as_int() != 0)
- return NULL;
+ return nullptr;
CMStringW wszChannelName = pGuild->wszName + L"#" + pch["name"].as_mstring();
CMStringW wszChannelId = pch["id"].as_mstring();
@@ -120,7 +120,7 @@ CDiscordUser* CDiscordProto::ProcessGuildChannel(CDiscordGuild *pGuild, const JS
}
CDiscordUser *pUser = FindUserByChannel(channelId);
- if (pUser == NULL) {
+ if (pUser == nullptr) {
// missing channel - create it
pUser = new CDiscordUser(channelId);
pUser->bIsPrivate = false;