summaryrefslogtreecommitdiff
path: root/src/core/stdidle
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 /src/core/stdidle
parent591ec17b1c99db7f120c22ca9fb20ae05fe78325 (diff)
Code modernize ...
* replace 0/NULL with nullptr [using clang-tidy]
Diffstat (limited to 'src/core/stdidle')
-rw-r--r--src/core/stdidle/src/idle.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/stdidle/src/idle.cpp b/src/core/stdidle/src/idle.cpp
index 6176f7baa2..78661c1eb2 100644
--- a/src/core/stdidle/src/idle.cpp
+++ b/src/core/stdidle/src/idle.cpp
@@ -110,7 +110,7 @@ static BOOL bModuleInitialized = FALSE;
BOOL IsTerminalDisconnected()
{
- PVOID pBuffer = NULL;
+ PVOID pBuffer = nullptr;
DWORD pBytesReturned = 0;
BOOL result = FALSE;
@@ -166,7 +166,7 @@ static void IdleObject_ReadSettings(IdleObject * obj)
static void IdleObject_Create(IdleObject * obj)
{
memset(obj, 0, sizeof(IdleObject));
- obj->hTimer = SetTimer(NULL, 0, 2000, IdleTimer);
+ obj->hTimer = SetTimer(nullptr, 0, 2000, IdleTimer);
IdleObject_ReadSettings(obj);
}
@@ -175,7 +175,7 @@ static void IdleObject_Destroy(IdleObject * obj)
if (IdleObject_IsIdle(obj))
NotifyEventHooks(hIdleEvent, 0, 0);
IdleObject_ClearIdle(obj);
- KillTimer(NULL, obj->hTimer);
+ KillTimer(nullptr, obj->hTimer);
}
static int IdleObject_IsUserIdle(IdleObject * obj)
@@ -386,5 +386,5 @@ void UnloadIdleModule()
IdleObject_Destroy(&gIdleObject);
DestroyHookableEvent(hIdleEvent);
- hIdleEvent = NULL;
+ hIdleEvent = nullptr;
}