From 376f5d4859ba96bff4a3c4d7c9622664b9e578d7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 12 Apr 2018 18:53:26 +0300 Subject: db_get_current() also returns MDatabaseCommon* --- plugins/FavContacts/src/favlist.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/FavContacts/src') diff --git a/plugins/FavContacts/src/favlist.h b/plugins/FavContacts/src/favlist.h index 58c5b5cc01..6581193ec9 100644 --- a/plugins/FavContacts/src/favlist.h +++ b/plugins/FavContacts/src/favlist.h @@ -67,11 +67,11 @@ class TFavContacts : public LIST < TContactInfo > private: int nGroups; wchar_t *prevGroup; - MIDatabase *db; + MDatabaseCommon *db; int addContact(MCONTACT hContact, bool bManual) { - DBCachedContact *cc = db->m_cache->GetCachedContact(hContact); + DBCachedContact *cc = db->getCache()->GetCachedContact(hContact); if (cc == nullptr) return 0; -- cgit v1.2.3