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/ICQCorp/src/event.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'protocols/ICQCorp/src/event.cpp') diff --git a/protocols/ICQCorp/src/event.cpp b/protocols/ICQCorp/src/event.cpp index 70ccbedf3f..6499a1d37b 100644 --- a/protocols/ICQCorp/src/event.cpp +++ b/protocols/ICQCorp/src/event.cpp @@ -25,7 +25,7 @@ std::vector icqEvents; static void WINAPI eventTimerProc(HWND, UINT, UINT_PTR hTimer, DWORD) { - KillTimer(NULL, hTimer); + KillTimer(nullptr, hTimer); for (size_t i = 0; i < icqEvents.size(); i++) if (hTimer == icqEvents[i]->hTimer) @@ -40,7 +40,7 @@ ICQEvent* getEvent(SOCKET hSocket, unsigned int sequence) if (icqEvents[i]->isEvent(hSocket, sequence)) return icqEvents[i]; - return NULL; + return nullptr; } /////////////////////////////////////////////////////////////////////////////// @@ -77,7 +77,7 @@ bool ICQEvent::start() return false; if (cmd != ICQ_CMDxTCP_START) - hTimer = SetTimer(NULL, 0, MAX_WAIT_ACK, eventTimerProc); + hTimer = SetTimer(nullptr, 0, MAX_WAIT_ACK, eventTimerProc); return true; } @@ -86,7 +86,7 @@ bool ICQEvent::start() void ICQEvent::stop() { if (hTimer) { - KillTimer(NULL, hTimer); + KillTimer(nullptr, hTimer); hTimer = NULL; } } -- cgit v1.2.3