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/NewEventNotify/src/main.cpp | 2 +- plugins/NewEventNotify/src/popup.cpp | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'plugins/NewEventNotify/src') diff --git a/plugins/NewEventNotify/src/main.cpp b/plugins/NewEventNotify/src/main.cpp index 275372ef71..b9ef026ca1 100644 --- a/plugins/NewEventNotify/src/main.cpp +++ b/plugins/NewEventNotify/src/main.cpp @@ -62,7 +62,7 @@ int HookedNewEvent(WPARAM hContact, LPARAM hDbEvent) return 0; //get DBEVENTINFO without pBlob - DBEVENTINFO dbe = { sizeof(dbe) }; + DBEVENTINFO dbe = {}; db_event_get(hDbEvent, &dbe); //do not show popups for sub-contacts diff --git a/plugins/NewEventNotify/src/popup.cpp b/plugins/NewEventNotify/src/popup.cpp index 4edd1c8bad..e354f6a573 100644 --- a/plugins/NewEventNotify/src/popup.cpp +++ b/plugins/NewEventNotify/src/popup.cpp @@ -429,7 +429,7 @@ int PopupShow(PLUGIN_OPTIONS* pluginOptions, MCONTACT hContact, MEVENT hEvent, U } //get DBEVENTINFO with pBlob if preview is needed (when is test then is off) - DBEVENTINFO dbe = { sizeof(dbe) }; + DBEVENTINFO dbe = {}; if (hEvent) { if ((pluginOptions->bPreview || eventType == EVENTTYPE_ADDED || eventType == EVENTTYPE_AUTHREQUEST)) { dbe.cbBlob = db_event_getBlobSize(hEvent); @@ -532,8 +532,7 @@ int PopupUpdate(MCONTACT hContact, MEVENT hEvent) iEvent++; //get DBEVENTINFO with pBlob if preview is needed (when is test then is off) - DBEVENTINFO dbe = {0}; - dbe.cbSize = sizeof(dbe); + DBEVENTINFO dbe = {}; dbe.pBlob = NULL; dbe.cbBlob = 0; if (pdata->pluginOptions->bPreview && eventData->hEvent) { -- cgit v1.2.3