summaryrefslogtreecommitdiff
path: root/protocols/ICQCorp/src/event.cpp
diff options
context:
space:
mode:
authorGoraf <22941576+Goraf@users.noreply.github.com>2017-11-13 15:03:31 +0100
committerGoraf <22941576+Goraf@users.noreply.github.com>2017-11-13 15:07:33 +0100
commita7c24ca48995cf2bf436156302f96b91bf135409 (patch)
tree953835509ff1b778833e78fd7b74b05e05e77c84 /protocols/ICQCorp/src/event.cpp
parent591ec17b1c99db7f120c22ca9fb20ae05fe78325 (diff)
Code modernize ...
* replace 0/NULL with nullptr [using clang-tidy]
Diffstat (limited to 'protocols/ICQCorp/src/event.cpp')
-rw-r--r--protocols/ICQCorp/src/event.cpp8
1 files changed, 4 insertions, 4 deletions
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 <ICQEvent *> 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;
}
}