diff options
author | George Hazan <ghazan@miranda.im> | 2017-01-17 17:19:19 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-01-17 17:19:19 +0300 |
commit | b327ed7872ca83c3a4249039ba1a3d8dd3ece630 (patch) | |
tree | 5a4ae83dafab23f7832186b5dd0736611998f43c /plugins/BasicHistory | |
parent | fd7566b5de6b59bb18ff380cb1fa3f3f1089b70b (diff) |
useless field DBEVENTINFO::cbSize removed
Diffstat (limited to 'plugins/BasicHistory')
-rw-r--r-- | plugins/BasicHistory/src/DatExport.cpp | 3 | ||||
-rw-r--r-- | plugins/BasicHistory/src/EventList.cpp | 4 | ||||
-rw-r--r-- | plugins/BasicHistory/src/Scheduler.cpp | 2 |
3 files changed, 3 insertions, 6 deletions
diff --git a/plugins/BasicHistory/src/DatExport.cpp b/plugins/BasicHistory/src/DatExport.cpp index 7ef7bb0f79..7c8f5af157 100644 --- a/plugins/BasicHistory/src/DatExport.cpp +++ b/plugins/BasicHistory/src/DatExport.cpp @@ -150,8 +150,7 @@ bool DatExport::GetEventList(std::vector<IImport::ExternalMessage>& eventList) dataSize = header.dataSize;
DBEVENTINFO86 messageHeader;
- DBEVENTINFO info = { 0 };
- info.cbSize = sizeof(DBEVENTINFO);
+ DBEVENTINFO info = {};
info.szModule = GetContactProto(hContact);
wchar_t _str[MAXSELECTSTR + 8]; // for safety reason
std::multimap<DWORD, IImport::ExternalMessage> sortedEvents;
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<IImport::ExternalMessage> std::list<EventTempIndex> tempList;
GetTempList(tempList, true, false, m_hContact);
- DBEVENTINFO dbei = { sizeof(dbei) };
+ DBEVENTINFO dbei = {};
dbei.szModule = GetContactProto(m_hContact);
db_set_safety_mode(FALSE);
diff --git a/plugins/BasicHistory/src/Scheduler.cpp b/plugins/BasicHistory/src/Scheduler.cpp index 2ef6bf3317..f0adc1f203 100644 --- a/plugins/BasicHistory/src/Scheduler.cpp +++ b/plugins/BasicHistory/src/Scheduler.cpp @@ -1280,7 +1280,7 @@ void DoError(const TaskOptions& to, const std::wstring _error) error += L"\n";
error += _error;
- DBEVENTINFO dbei = { sizeof(DBEVENTINFO) };
+ DBEVENTINFO dbei = {};
dbei.szModule = MODULE;
dbei.flags = DBEF_UTF | DBEF_READ;
dbei.timestamp = time(NULL);
|