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] --- plugins/WhenWasIt/src/hooked_events.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/WhenWasIt/src/hooked_events.cpp') diff --git a/plugins/WhenWasIt/src/hooked_events.cpp b/plugins/WhenWasIt/src/hooked_events.cpp index 4118efa6e1..072a57f2ba 100644 --- a/plugins/WhenWasIt/src/hooked_events.cpp +++ b/plugins/WhenWasIt/src/hooked_events.cpp @@ -31,7 +31,7 @@ static int currentDay = 0; static int OnTopToolBarModuleLoaded(WPARAM, LPARAM) { - TTBButton ttb = { 0 }; + TTBButton ttb = {}; ttb.dwFlags = TTBBF_VISIBLE | TTBBF_SHOWTOOLTIP; ttb.pszService = MS_WWI_CHECK_BIRTHDAYS; ttb.hIconHandleUp = hCheckMenu; @@ -144,19 +144,19 @@ int UpdateTimers() { UINT interval = db_get_dw(NULL, ModuleName, "Interval", CHECK_INTERVAL); interval *= (1000 * 60 * 60); //go from miliseconds to hours - hCheckTimer = SetTimer(NULL, 0, interval, OnCheckTimer); + hCheckTimer = SetTimer(nullptr, 0, interval, OnCheckTimer); if (!hDateChangeTimer) - hDateChangeTimer = SetTimer(NULL, 0, (1000 * DATE_CHANGE_CHECK_INTERVAL), OnDateChangeTimer); + hDateChangeTimer = SetTimer(nullptr, 0, (1000 * DATE_CHANGE_CHECK_INTERVAL), OnDateChangeTimer); return 0; } int KillTimers() { - KillTimer(NULL, hCheckTimer); + KillTimer(nullptr, hCheckTimer); hCheckTimer = NULL; - KillTimer(NULL, hDateChangeTimer); + KillTimer(nullptr, hDateChangeTimer); hDateChangeTimer = NULL; return 0; -- cgit v1.2.3