diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2016-03-08 10:39:59 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2016-03-08 10:39:59 +0000 |
commit | 0bac8935f42efa1e1152fd09a04d95b76d8c5eb3 (patch) | |
tree | 93a8f9fc987ea7007b277ea27d0780999c2e8eeb /plugins/Dbx_mdb/src/dbcontacts.cpp | |
parent | 90cc15799fe189134d9580c1dc121d0b78df17ba (diff) |
dbx_lmdb: more fixes & optimizations
git-svn-id: http://svn.miranda-ng.org/main/trunk@16446 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dbx_mdb/src/dbcontacts.cpp')
-rw-r--r-- | plugins/Dbx_mdb/src/dbcontacts.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Dbx_mdb/src/dbcontacts.cpp b/plugins/Dbx_mdb/src/dbcontacts.cpp index e8f72bc9c3..f19811b10e 100644 --- a/plugins/Dbx_mdb/src/dbcontacts.cpp +++ b/plugins/Dbx_mdb/src/dbcontacts.cpp @@ -120,7 +120,7 @@ STDMETHODIMP_(LONG) CDbxMdb::DeleteContact(MCONTACT contactID) do
{
- DBSettingKey *pKey = (DBSettingKey*)key.mv_data;
+ const DBSettingKey *pKey = (const DBSettingKey*)key.mv_data;
if (pKey->dwContactID != contactID)
break;
mdb_cursor_del(cursor, 0);
@@ -207,7 +207,7 @@ void CDbxMdb::GatherContactHistory(MCONTACT hContact, LIST<EventItem> &list) cursor_ptr_ro cursor(m_curEventsSort);
mdb_cursor_get(cursor, &key, &data, MDB_SET_RANGE);
do {
- DBEventSortingKey *pKey = (DBEventSortingKey*)key.mv_data;
+ const DBEventSortingKey *pKey = (const DBEventSortingKey*)key.mv_data;
if (pKey->dwContactId != hContact)
return;
@@ -322,7 +322,7 @@ void CDbxMdb::FillContacts() MDB_val key, data;
while (mdb_cursor_get(cursor, &key, &data, MDB_NEXT) == 0)
{
- DBContact *dbc = (DBContact*)data.mv_data;
+ const DBContact *dbc = (const DBContact*)data.mv_data;
if (dbc->dwSignature != DBCONTACT_SIGNATURE)
DatabaseCorruption(NULL);
|