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/FavContacts/src/contact_cache.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/FavContacts/src') diff --git a/plugins/FavContacts/src/contact_cache.cpp b/plugins/FavContacts/src/contact_cache.cpp index 13bd394571..7e69ffa91d 100644 --- a/plugins/FavContacts/src/contact_cache.cpp +++ b/plugins/FavContacts/src/contact_cache.cpp @@ -30,9 +30,9 @@ int __cdecl CContactCache::OnDbEventAdded(WPARAM hContact, LPARAM hEvent) if (dbei.eventType != EVENTTYPE_MESSAGE) return 0; - float weight = GetEventWeight(time(nullptr) - dbei.timestamp); - float q = GetTimeWeight(time(nullptr) - m_lastUpdate); - m_lastUpdate = time(nullptr); + float weight = GetEventWeight(time(0) - dbei.timestamp); + float q = GetTimeWeight(time(0) - m_lastUpdate); + m_lastUpdate = time(0); if (!weight) return 0; @@ -77,8 +77,8 @@ float CContactCache::GetTimeWeight(unsigned long age) void CContactCache::Rebuild() { - unsigned long timestamp = time(nullptr); - m_lastUpdate = time(nullptr); + unsigned long timestamp = time(0); + m_lastUpdate = time(0); for (auto &hContact : Contacts()) { TContactInfo *info = new TContactInfo; -- cgit v1.2.3