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/Twitter/src/contacts.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/Twitter/src/contacts.cpp') diff --git a/protocols/Twitter/src/contacts.cpp b/protocols/Twitter/src/contacts.cpp index 9c9f6f4d50..762ccfb86c 100644 --- a/protocols/Twitter/src/contacts.cpp +++ b/protocols/Twitter/src/contacts.cpp @@ -22,7 +22,7 @@ along with this program. If not, see . void TwitterProto::AddToListWorker(void *pArg) { // TODO: what happens if there is an error? - if (pArg == 0) + if (pArg == nullptr) return; char *name = static_cast(pArg); @@ -70,7 +70,7 @@ void TwitterProto::UpdateInfoWorker(void *arg) } UpdateAvatar(hContact, user.profile_image_url, true); - ProtoBroadcastAck(hContact, ACKTYPE_GETINFO, ACKRESULT_SUCCESS, 0); + ProtoBroadcastAck(hContact, ACKTYPE_GETINFO, ACKRESULT_SUCCESS, nullptr); } int TwitterProto::GetInfo(MCONTACT hContact, int info_type) @@ -102,7 +102,7 @@ struct search_query void TwitterProto::DoSearch(void *pArg) { - if (pArg == 0) + if (pArg == nullptr) return; search_query *query = static_cast(pArg); -- cgit v1.2.3