summaryrefslogtreecommitdiff
path: root/plugins/Dbx_mdbx/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-11-15 14:10:39 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-11-15 14:10:39 +0300
commit93d2f6b311584f7fe92521abbc1285cb35f13def (patch)
tree5605de6f9f7a34c6525cf14a491600cf4dda3203 /plugins/Dbx_mdbx/src
parent3ca5d1f7ab3f9f9159b57ea930dd6f7a343af68d (diff)
unused variable CDbxMDBX::m_bShared removed
Diffstat (limited to 'plugins/Dbx_mdbx/src')
-rw-r--r--plugins/Dbx_mdbx/src/dbintf.cpp3
-rw-r--r--plugins/Dbx_mdbx/src/dbintf.h4
2 files changed, 2 insertions, 5 deletions
diff --git a/plugins/Dbx_mdbx/src/dbintf.cpp b/plugins/Dbx_mdbx/src/dbintf.cpp
index 8631d6f4bd..45e8b038cd 100644
--- a/plugins/Dbx_mdbx/src/dbintf.cpp
+++ b/plugins/Dbx_mdbx/src/dbintf.cpp
@@ -27,10 +27,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// constructor & destructor
CDbxMDBX::CDbxMDBX(const wchar_t *tszFileName, int iMode) :
- m_safetyMode(true),
m_bReadOnly((iMode & DBMODE_READONLY) != 0),
- m_bShared((iMode & DBMODE_SHARED) != 0),
- m_maxContactId(0),
m_pwszProfileName(mir_wstrdup(tszFileName)),
m_impl(*this)
{
diff --git a/plugins/Dbx_mdbx/src/dbintf.h b/plugins/Dbx_mdbx/src/dbintf.h
index b5adf457f9..f8c94750c1 100644
--- a/plugins/Dbx_mdbx/src/dbintf.h
+++ b/plugins/Dbx_mdbx/src/dbintf.h
@@ -179,7 +179,7 @@ class CDbxMDBX : public MDatabaseCommon, public MIDatabaseChecker, public MZeroe
// database stuff
ptrW m_pwszProfileName;
- bool m_safetyMode, m_bReadOnly, m_bShared, m_bEncrypted, m_bUsesPassword;
+ bool m_safetyMode = true, m_bReadOnly, m_bEncrypted, m_bUsesPassword;
MDBX_env *m_env;
CMDBX_txn_ro m_txn_ro;
@@ -204,7 +204,7 @@ class CDbxMDBX : public MDatabaseCommon, public MIDatabaseChecker, public MZeroe
MDBX_dbi m_dbContacts;
MDBX_cursor *m_curContacts;
- MCONTACT m_maxContactId;
+ MCONTACT m_maxContactId = 0;
void GatherContactHistory(MCONTACT hContact, OBJLIST<EventItem> &items);