From 93d2f6b311584f7fe92521abbc1285cb35f13def Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 15 Nov 2020 14:10:39 +0300 Subject: unused variable CDbxMDBX::m_bShared removed --- plugins/Dbx_mdbx/src/dbintf.cpp | 3 --- plugins/Dbx_mdbx/src/dbintf.h | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'plugins/Dbx_mdbx/src') 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 &items); -- cgit v1.2.3