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/FacebookRM/src/avatars.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'protocols/FacebookRM/src/avatars.cpp') diff --git a/protocols/FacebookRM/src/avatars.cpp b/protocols/FacebookRM/src/avatars.cpp index da7be52e72..41e3c5d341 100644 --- a/protocols/FacebookRM/src/avatars.cpp +++ b/protocols/FacebookRM/src/avatars.cpp @@ -80,13 +80,13 @@ void FacebookProto::CheckAvatarChange(MCONTACT hContact, const std::string &imag } else if (update_required) { db_set_b(hContact, "ContactPhoto", "NeedUpdate", 1); - ProtoBroadcastAck(hContact, ACKTYPE_AVATAR, ACKRESULT_STATUS, 0); + ProtoBroadcastAck(hContact, ACKTYPE_AVATAR, ACKRESULT_STATUS, nullptr); } } void FacebookProto::UpdateAvatarWorker(void *) { - HNETLIBCONN nlc = NULL; + HNETLIBCONN nlc = nullptr; debugLogA("*** UpdateAvatarWorker"); @@ -178,7 +178,7 @@ INT_PTR FacebookProto::GetAvatarInfo(WPARAM wParam, LPARAM lParam) return GAIR_NOAVATAR; PROTO_AVATAR_INFORMATION* pai = (PROTO_AVATAR_INFORMATION*)lParam; - if (GetDbAvatarInfo(*pai, NULL)) + if (GetDbAvatarInfo(*pai, nullptr)) { bool fileExist = _waccess(pai->filename, 0) == 0; @@ -198,7 +198,7 @@ INT_PTR FacebookProto::GetAvatarInfo(WPARAM wParam, LPARAM lParam) bool is_empty = avatar_queue.empty(); avatar_queue.push_back(pai->hContact); if (is_empty) - ForkThread(&FacebookProto::UpdateAvatarWorker, NULL); + ForkThread(&FacebookProto::UpdateAvatarWorker, nullptr); } return GAIR_WAITFOR; } -- cgit v1.2.3