From b327ed7872ca83c3a4249039ba1a3d8dd3ece630 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 17 Jan 2017 17:19:19 +0300 Subject: useless field DBEVENTINFO::cbSize removed --- plugins/BasicHistory/src/EventList.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'plugins/BasicHistory/src/EventList.cpp') diff --git a/plugins/BasicHistory/src/EventList.cpp b/plugins/BasicHistory/src/EventList.cpp index 457b5e57dc..9378fab352 100644 --- a/plugins/BasicHistory/src/EventList.cpp +++ b/plugins/BasicHistory/src/EventList.cpp @@ -38,7 +38,6 @@ HistoryEventList::HistoryEventList() : m_useImportedMessages(true) { memset(&m_dbei, 0, sizeof(DBEVENTINFO)); - m_dbei.cbSize = sizeof(DBEVENTINFO); m_oldBlobSize = 0; } @@ -51,7 +50,6 @@ HistoryEventList::HistoryEventList(MCONTACT _hContact, int filter) : m_useImportedMessages(true) { memset(&m_dbei, 0, sizeof(DBEVENTINFO)); - m_dbei.cbSize = sizeof(DBEVENTINFO); m_oldBlobSize = 0; SetDefFilter(filter); } @@ -501,7 +499,7 @@ void HistoryEventList::MargeMessages(const std::vector std::list tempList; GetTempList(tempList, true, false, m_hContact); - DBEVENTINFO dbei = { sizeof(dbei) }; + DBEVENTINFO dbei = {}; dbei.szModule = GetContactProto(m_hContact); db_set_safety_mode(FALSE); -- cgit v1.2.3