diff options
author | George Hazan <ghazan@miranda.im> | 2023-04-14 18:48:50 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2023-04-14 18:48:50 +0300 |
commit | 357bb36c10405e7571f9ebd41d8e11837ebd6175 (patch) | |
tree | a1cd0dabe39ce913f7bf3356e47fc1d18363940e /plugins/Scriver/src/msgdialog.cpp | |
parent | f12d6a4000cfce521392200635d1cadc63dba934 (diff) |
duplicate code removed
Diffstat (limited to 'plugins/Scriver/src/msgdialog.cpp')
-rw-r--r-- | plugins/Scriver/src/msgdialog.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/Scriver/src/msgdialog.cpp b/plugins/Scriver/src/msgdialog.cpp index 4112c792de..1eab95ef1a 100644 --- a/plugins/Scriver/src/msgdialog.cpp +++ b/plugins/Scriver/src/msgdialog.cpp @@ -1071,8 +1071,7 @@ INT_PTR CMsgDialog::DlgProc(UINT msg, WPARAM wParam, LPARAM lParam) MEVENT hDbEvent = m_hDbUnreadEventFirst;
m_hDbUnreadEventFirst = 0;
while (hDbEvent != 0) {
- DBEVENTINFO dbei = {};
- db_event_get(hDbEvent, &dbei);
+ DB::EventInfo dbei(hDbEvent, false);
if (!(dbei.flags & DBEF_SENT) && DbEventIsMessageOrCustom(dbei))
g_clistApi.pfnRemoveEvent(m_hContact, hDbEvent);
hDbEvent = db_event_next(m_hContact, hDbEvent);
|