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/SimpleAR/src/Main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/SimpleAR/src') diff --git a/plugins/SimpleAR/src/Main.cpp b/plugins/SimpleAR/src/Main.cpp index 8375b1e5df..5a73931214 100644 --- a/plugins/SimpleAR/src/Main.cpp +++ b/plugins/SimpleAR/src/Main.cpp @@ -175,7 +175,7 @@ INT addEvent(WPARAM hContact, LPARAM hDBEvent) return FALSE; if (!(dbei.flags & DBEF_SENT)) { - int timeBetween = time(nullptr) - db_get_dw(hContact, protocolname, "LastReplyTS", 0); + int timeBetween = time(0) - db_get_dw(hContact, protocolname, "LastReplyTS", 0); if (timeBetween > interval || db_get_w(hContact, protocolname, "LastStatus", 0) != status) { size_t msgLen = 1; int isQun = db_get_b(hContact, pszProto, "IsQun", 0); @@ -218,7 +218,7 @@ INT addEvent(WPARAM hContact, LPARAM hDBEvent) dbei.eventType = EVENTTYPE_MESSAGE; dbei.flags = DBEF_UTF | DBEF_SENT; dbei.szModule = pszProto; - dbei.timestamp = time(nullptr); + dbei.timestamp = time(0); dbei.cbBlob = (int)mir_strlen(pszUtf) + 1; dbei.pBlob = (PBYTE)pszUtf; db_event_add(hContact, &dbei); @@ -231,7 +231,7 @@ INT addEvent(WPARAM hContact, LPARAM hDBEvent) } } - db_set_dw(hContact, protocolname, "LastReplyTS", time(nullptr)); + db_set_dw(hContact, protocolname, "LastReplyTS", time(0)); db_set_w(hContact, protocolname, "LastStatus", status); } return 0; -- cgit v1.2.3