From 35a2b1771115068077ce6db13860766e70405de1 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 12 Apr 2018 18:34:27 +0300 Subject: MIDatabase became pure interface --- include/m_db_int.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/m_db_int.h b/include/m_db_int.h index 4178434dc0..c3fc97eecd 100644 --- a/include/m_db_int.h +++ b/include/m_db_int.h @@ -82,8 +82,6 @@ interface MIDatabaseCache : public MZeroedObject interface MIR_APP_EXPORT MIDatabase { - MIDatabaseCache* m_cache; - STDMETHOD_(BOOL, IsRelational)(void) PURE; STDMETHOD_(void, SetCacheSafetyMode)(BOOL) PURE; @@ -137,6 +135,7 @@ protected: mir_cs m_csDbAccess; LIST m_lResidentSettings; + MIDatabaseCache* m_cache; protected: int CheckProto(DBCachedContact *cc, const char *proto); @@ -147,6 +146,8 @@ public: MDatabaseCommon(); virtual ~MDatabaseCommon(); + __forceinline MIDatabaseCache* getCache() const { return m_cache; } + STDMETHODIMP_(BOOL) DeleteModule(MCONTACT contactID, LPCSTR szModule); STDMETHODIMP_(MCONTACT) FindFirstContact(const char *szProto = nullptr); -- cgit v1.2.3