From a7c24ca48995cf2bf436156302f96b91bf135409 Mon Sep 17 00:00:00 2001
From: Goraf <22941576+Goraf@users.noreply.github.com>
Date: Mon, 13 Nov 2017 15:03:31 +0100
Subject: Code modernize ...

* replace 0/NULL with nullptr [using clang-tidy]
---
 protocols/Discord/src/dispatch.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'protocols/Discord/src/dispatch.cpp')

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;
-- 
cgit v1.2.3