diff options
author | George Hazan <ghazan@miranda.im> | 2018-05-03 16:02:14 +0200 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-05-03 16:02:14 +0200 |
commit | 3ad2582c4a4a6378f294f9256ecbcbdf0ae88e3a (patch) | |
tree | 412a28ef6a572efc7039df1c363bf47a3dec4b19 /plugins/FavContacts | |
parent | 9a6f750a482d1d1ebf4281bb7bf8133e547ad438 (diff) |
mir_forkThread<typename> - stronger typizatioin for thread function parameter
Diffstat (limited to 'plugins/FavContacts')
-rw-r--r-- | plugins/FavContacts/src/contact_cache.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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;
|