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/WhatsApp/src/theme.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/WhatsApp/src/theme.cpp') diff --git a/protocols/WhatsApp/src/theme.cpp b/protocols/WhatsApp/src/theme.cpp index 70ba827608..e280a623ec 100644 --- a/protocols/WhatsApp/src/theme.cpp +++ b/protocols/WhatsApp/src/theme.cpp @@ -19,7 +19,7 @@ HANDLE GetIconHandle(const char* name) if (mir_strcmp(icons[i].szName, name) == 0) return icons[i].hIcolib; - return 0; + return nullptr; } char* GetIconDescription(const char* name) @@ -36,13 +36,13 @@ static WhatsAppProto* GetInstanceByHContact(MCONTACT hContact) { char *proto = GetContactProto(hContact); if (!proto) - return 0; + return nullptr; for (int i = 0; i < g_Instances.getCount(); i++) if (!mir_strcmp(proto, g_Instances[i].m_szModuleName)) return &g_Instances[i]; - return 0; + return nullptr; } void WhatsAppProto::InitMenu() -- cgit v1.2.3