summaryrefslogtreecommitdiff
path: root/protocols/Discord/src/dispatch.cpp
diff options
context:
space:
mode:
authorGoraf <22941576+Goraf@users.noreply.github.com>2017-11-13 15:03:31 +0100
committerGoraf <22941576+Goraf@users.noreply.github.com>2017-11-13 15:07:33 +0100
commita7c24ca48995cf2bf436156302f96b91bf135409 (patch)
tree953835509ff1b778833e78fd7b74b05e05e77c84 /protocols/Discord/src/dispatch.cpp
parent591ec17b1c99db7f120c22ca9fb20ae05fe78325 (diff)
Code modernize ...
* replace 0/NULL with nullptr [using clang-tidy]
Diffstat (limited to 'protocols/Discord/src/dispatch.cpp')
-rw-r--r--protocols/Discord/src/dispatch.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/Discord/src/dispatch.cpp b/protocols/Discord/src/dispatch.cpp
index 5e615367b3..cd5dbf7ec3 100644
--- a/protocols/Discord/src/dispatch.cpp
+++ b/protocols/Discord/src/dispatch.cpp
@@ -144,7 +144,7 @@ void CDiscordProto::OnCommandChannelUpdated(const JSONNode &pRoot)
GCEVENT gce = { m_szModuleName, pUser->wszUsername, GC_EVENT_TOPIC };
gce.ptszText = wszTopic;
- gce.time = time(0);
+ gce.time = time(nullptr);
Chat_Event(&gce);
}
}
@@ -228,7 +228,7 @@ void CDiscordProto::OnCommandGuildMemberRemoved(const JSONNode &pRoot)
continue;
GCEVENT gce = { m_szModuleName, pUser.wszUsername, GC_EVENT_PART };
- gce.time = time(0);
+ gce.time = time(nullptr);
gce.ptszUID = wszUserId;
Chat_Event(&gce);
}
@@ -263,7 +263,7 @@ void CDiscordProto::OnCommandGuildMemberUpdated(const JSONNode &pRoot)
}
GCEVENT gce = { m_szModuleName, pUser.wszUsername, GC_EVENT_NICK };
- gce.time = time(0);
+ gce.time = time(nullptr);
gce.ptszUID = wszUserId;
gce.ptszNick = wszOldNick;
gce.ptszText = gm->wszNick;