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 /src/mir_core | |
parent | c9f5b74041f85d59dd061c7e1cfbe35d23ead9a3 (diff) |
db_event_add / db_event_edit to receive const pointer to DBEVENTINFO
Diffstat (limited to 'src/mir_core')
-rw-r--r-- | src/mir_core/src/db.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mir_core/src/db.cpp b/src/mir_core/src/db.cpp index 9395366c29..b6b2eba075 100644 --- a/src/mir_core/src/db.cpp +++ b/src/mir_core/src/db.cpp @@ -361,7 +361,7 @@ MIR_CORE_DLL(INT_PTR) db_set_blob(MCONTACT hContact, const char *szModule, const /////////////////////////////////////////////////////////////////////////////////////////
// events
-MIR_CORE_DLL(MEVENT) db_event_add(MCONTACT hContact, DBEVENTINFO *dbei)
+MIR_CORE_DLL(MEVENT) db_event_add(MCONTACT hContact, const DBEVENTINFO *dbei)
{
return (currDb == nullptr) ? 0 : currDb->AddEvent(hContact, dbei);
}
@@ -376,7 +376,7 @@ MIR_CORE_DLL(int) db_event_delete(MEVENT hDbEvent) return (currDb == nullptr) ? 0 : currDb->DeleteEvent(hDbEvent);
}
-MIR_CORE_DLL(int) db_event_edit(MCONTACT hContact, MEVENT hDbEvent, DBEVENTINFO *dbei)
+MIR_CORE_DLL(int) db_event_edit(MCONTACT hContact, MEVENT hDbEvent, const DBEVENTINFO *dbei)
{
return (currDb == nullptr) ? 0 : currDb->EditEvent(hContact, hDbEvent, dbei);
}
|