diff options
author | George Hazan <ghazan@miranda.im> | 2020-04-25 17:08:25 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-04-25 17:08:32 +0300 |
commit | 6ea21b88c16c553aa97e2cd53266ffd4a689d581 (patch) | |
tree | fd32557b4347043c0ce04aaaad2333e90faee3ba /plugins/Import/src | |
parent | c9f5b74041f85d59dd061c7e1cfbe35d23ead9a3 (diff) |
db_event_add / db_event_edit to receive const pointer to DBEVENTINFO
Diffstat (limited to 'plugins/Import/src')
-rw-r--r-- | plugins/Import/src/dbrw/dbevents.cpp | 4 | ||||
-rw-r--r-- | plugins/Import/src/dbrw/dbintf.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Import/src/dbrw/dbevents.cpp b/plugins/Import/src/dbrw/dbevents.cpp index 0b4611d51d..3dff9584ab 100644 --- a/plugins/Import/src/dbrw/dbevents.cpp +++ b/plugins/Import/src/dbrw/dbevents.cpp @@ -34,7 +34,7 @@ STDMETHODIMP_(LONG) CDbxSQLite::GetEventCount(MCONTACT contactID) return res; } -STDMETHODIMP_(MEVENT) CDbxSQLite::AddEvent(MCONTACT, DBEVENTINFO*) +STDMETHODIMP_(MEVENT) CDbxSQLite::AddEvent(MCONTACT, const DBEVENTINFO*) { return 0; } @@ -44,7 +44,7 @@ STDMETHODIMP_(BOOL) CDbxSQLite::DeleteEvent(MEVENT) return FALSE; } -BOOL CDbxSQLite::EditEvent(MCONTACT, MEVENT, DBEVENTINFO*) +BOOL CDbxSQLite::EditEvent(MCONTACT, MEVENT, const DBEVENTINFO*) { return 1; } diff --git a/plugins/Import/src/dbrw/dbintf.h b/plugins/Import/src/dbrw/dbintf.h index 6d62fd6fb6..09d7514f2f 100644 --- a/plugins/Import/src/dbrw/dbintf.h +++ b/plugins/Import/src/dbrw/dbintf.h @@ -132,9 +132,9 @@ public: STDMETHODIMP_(LONG) GetContactSize(void) override; STDMETHODIMP_(LONG) GetEventCount(MCONTACT contactID) override; - STDMETHODIMP_(MEVENT) AddEvent(MCONTACT contactID, DBEVENTINFO *dbe) override; + STDMETHODIMP_(MEVENT) AddEvent(MCONTACT contactID, const DBEVENTINFO *dbe) override; STDMETHODIMP_(BOOL) DeleteEvent(MEVENT hDbEvent) override; - STDMETHODIMP_(BOOL) EditEvent(MCONTACT contactID, MEVENT hDbEvent, DBEVENTINFO *dbe) override; + STDMETHODIMP_(BOOL) EditEvent(MCONTACT contactID, MEVENT hDbEvent, const DBEVENTINFO *dbe) override; STDMETHODIMP_(LONG) GetBlobSize(MEVENT hDbEvent) override; STDMETHODIMP_(BOOL) GetEvent(MEVENT hDbEvent, DBEVENTINFO *dbe) override; STDMETHODIMP_(BOOL) MarkEventRead(MCONTACT contactID, MEVENT hDbEvent) override; |