summaryrefslogtreecommitdiff
path: root/plugins/Dbx_mdbx
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-10-10 23:38:16 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-10-10 23:38:16 +0300
commit9390b42340def16388cd06ab851cc303db0c096e (patch)
treec5ef12d340d47e4021ab68ef8c37d3a8f7f220f7 /plugins/Dbx_mdbx
parent39681c2aa83e33d46598f8aeecd10370b04cf364 (diff)
code cleaning
Diffstat (limited to 'plugins/Dbx_mdbx')
-rw-r--r--plugins/Dbx_mdbx/src/dbcontacts.cpp4
-rw-r--r--plugins/Dbx_mdbx/src/dbintf.cpp9
2 files changed, 2 insertions, 11 deletions
diff --git a/plugins/Dbx_mdbx/src/dbcontacts.cpp b/plugins/Dbx_mdbx/src/dbcontacts.cpp
index 1cda600b34..6c6fd8a8ba 100644
--- a/plugins/Dbx_mdbx/src/dbcontacts.cpp
+++ b/plugins/Dbx_mdbx/src/dbcontacts.cpp
@@ -41,7 +41,7 @@ LONG CDbxMDBX::DeleteContact(MCONTACT contactID)
if (contactID == 0) // global contact cannot be removed
return 1;
- NotifyEventHooks(g_hevEventDeleted, contactID, 0);
+ NotifyEventHooks(g_hevContactDeleted, contactID, 0);
{
OBJLIST<EventItem> events(50);
GatherContactHistory(contactID, events);
@@ -102,7 +102,7 @@ MCONTACT CDbxMDBX::AddContact()
DBFlush();
- NotifyEventHooks(g_hevEventAdded, dwContactId, 0);
+ NotifyEventHooks(g_hevContactAdded, dwContactId, 0);
return dwContactId;
}
diff --git a/plugins/Dbx_mdbx/src/dbintf.cpp b/plugins/Dbx_mdbx/src/dbintf.cpp
index e2bb33d12c..17005a3cbb 100644
--- a/plugins/Dbx_mdbx/src/dbintf.cpp
+++ b/plugins/Dbx_mdbx/src/dbintf.cpp
@@ -57,15 +57,6 @@ CDbxMDBX::~CDbxMDBX()
if (m_crypto)
m_crypto->destroy();
- DestroyHookableEvent(g_hevEventDeleted);
- DestroyHookableEvent(g_hevEventAdded);
- DestroyHookableEvent(g_hevSettingChanged);
- DestroyHookableEvent(g_hevMarkedRead);
-
- DestroyHookableEvent(g_hevEventAdded);
- DestroyHookableEvent(g_hevEventDeleted);
- DestroyHookableEvent(g_hevEventFiltered);
-
mir_free(m_tszProfileName);
}