From 3ad2582c4a4a6378f294f9256ecbcbdf0ae88e3a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 3 May 2018 16:02:14 +0200 Subject: mir_forkThread - stronger typizatioin for thread function parameter --- plugins/Clist_modern/src/modern_clc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/Clist_modern/src/modern_clc.cpp') diff --git a/plugins/Clist_modern/src/modern_clc.cpp b/plugins/Clist_modern/src/modern_clc.cpp index 371d7ce1f2..2d552b4ad4 100644 --- a/plugins/Clist_modern/src/modern_clc.cpp +++ b/plugins/Clist_modern/src/modern_clc.cpp @@ -155,7 +155,7 @@ static int clcHookSettingChanged(WPARAM hContact, LPARAM lParam) static int clcHookDbEventAdded(WPARAM hContact, LPARAM lParam) { - g_CluiData.t_now = time(nullptr); + g_CluiData.t_now = time(0); if (hContact && lParam) { DBEVENTINFO dbei = {}; db_event_get(lParam, &dbei); @@ -598,7 +598,7 @@ static LRESULT clcOnTimer(ClcData *dat, HWND hwnd, UINT msg, WPARAM wParam, LPAR switch (wParam) { case TIMERID_INVALIDATE: { - time_t cur_time = (time(nullptr) / 60); + time_t cur_time = (time(0) / 60); if (cur_time != dat->last_tick_time) { cliInvalidateRect(hwnd, nullptr, FALSE); dat->last_tick_time = cur_time; -- cgit v1.2.3