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/Dummy/src/dummy_proto.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'protocols/Dummy/src') diff --git a/protocols/Dummy/src/dummy_proto.cpp b/protocols/Dummy/src/dummy_proto.cpp index 56a4d3b8b8..6ccf2f4ac0 100644 --- a/protocols/Dummy/src/dummy_proto.cpp +++ b/protocols/Dummy/src/dummy_proto.cpp @@ -19,7 +19,7 @@ along with this program. If not, see . void CDummyProto::SendMsgAck(void *p) { - if (p == NULL) + if (p == nullptr) return; message_data *data = static_cast(p); @@ -69,7 +69,7 @@ CDummyProto::CDummyProto(const char *szModuleName, const wchar_t *ptszUserName) CDummyProto::~CDummyProto() { - Netlib_CloseHandle(m_hNetlibUser); m_hNetlibUser = NULL; + Netlib_CloseHandle(m_hNetlibUser); m_hNetlibUser = nullptr; dummy_Instances.remove(this); } @@ -145,7 +145,7 @@ int CDummyProto::SetStatus(int) HANDLE CDummyProto::SearchBasic(const wchar_t* id) { if (uniqueIdSetting[0] == '\0') - return 0; + return nullptr; wchar_t *tid = mir_wstrdup(id); ForkThread(&CDummyProto::SearchIdAckThread, tid); @@ -154,7 +154,7 @@ HANDLE CDummyProto::SearchBasic(const wchar_t* id) MCONTACT CDummyProto::AddToList(int flags, PROTOSEARCHRESULT* psr) { - if (psr->id.w == NULL) + if (psr->id.w == nullptr) return NULL; MCONTACT hContact = db_add_contact(); -- cgit v1.2.3