diff options
author | Goraf <22941576+Goraf@users.noreply.github.com> | 2017-11-13 15:03:31 +0100 |
---|---|---|
committer | Goraf <22941576+Goraf@users.noreply.github.com> | 2017-11-13 15:07:33 +0100 |
commit | a7c24ca48995cf2bf436156302f96b91bf135409 (patch) | |
tree | 953835509ff1b778833e78fd7b74b05e05e77c84 /plugins/Non-IM Contact/src/timer.cpp | |
parent | 591ec17b1c99db7f120c22ca9fb20ae05fe78325 (diff) |
Code modernize ...
* replace 0/NULL with nullptr [using clang-tidy]
Diffstat (limited to 'plugins/Non-IM Contact/src/timer.cpp')
-rw-r--r-- | plugins/Non-IM Contact/src/timer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Non-IM Contact/src/timer.cpp b/plugins/Non-IM Contact/src/timer.cpp index 18fdf21778..dc20309a9b 100644 --- a/plugins/Non-IM Contact/src/timer.cpp +++ b/plugins/Non-IM Contact/src/timer.cpp @@ -63,7 +63,7 @@ void CALLBACK timerProc(HWND, UINT, UINT_PTR, DWORD) //
int startTimer(int interval)
{
- timerId = SetTimer(NULL, 0, interval, timerProc);
+ timerId = SetTimer(nullptr, 0, interval, timerProc);
return 0;
}
@@ -78,7 +78,7 @@ int killTimer() {
if (timerId != 0) {
db_set_w(NULL, MODNAME, "timerCount", 0);
- KillTimer(NULL, timerId);
+ KillTimer(nullptr, timerId);
timerId = 0;
}
return 0;
|