summaryrefslogtreecommitdiff
path: root/protocols/ICQCorp/src/event.cpp
diff options
context:
space:
mode:
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;
}
}