summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/process.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-01-17 17:19:19 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-01-17 17:19:19 +0300
commitb327ed7872ca83c3a4249039ba1a3d8dd3ece630 (patch)
tree5a4ae83dafab23f7832186b5dd0736611998f43c /protocols/FacebookRM/src/process.cpp
parentfd7566b5de6b59bb18ff380cb1fa3f3f1089b70b (diff)
useless field DBEVENTINFO::cbSize removed
Diffstat (limited to 'protocols/FacebookRM/src/process.cpp')
-rw-r--r--protocols/FacebookRM/src/process.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/protocols/FacebookRM/src/process.cpp b/protocols/FacebookRM/src/process.cpp
index e9aded49e9..7551c71077 100644
--- a/protocols/FacebookRM/src/process.cpp
+++ b/protocols/FacebookRM/src/process.cpp
@@ -444,9 +444,7 @@ void FacebookProto::LoadHistory(void *pParam)
lastMessageId = msg.message_id;
// We don't use ProtoChainRecvMsg here as this is just loading of old messages, which we just add to log
- DBEVENTINFO dbei = { 0 };
- dbei.cbSize = sizeof(dbei);
-
+ DBEVENTINFO dbei = {};
if (msg.type == MESSAGE)
dbei.eventType = EVENTTYPE_MESSAGE;
else if (msg.type == VIDEO_CALL || msg.type == PHONE_CALL)
@@ -917,9 +915,7 @@ void FacebookProto::ReceiveMessages(std::vector<facebook_message> &messages, boo
ProtoChainRecvMsg(hContact, &recv);
}
else {
- DBEVENTINFO dbei = { 0 };
- dbei.cbSize = sizeof(dbei);
-
+ DBEVENTINFO dbei = {};
if (msg.type == MESSAGE)
dbei.eventType = EVENTTYPE_MESSAGE;
else if (msg.type == VIDEO_CALL || msg.type == PHONE_CALL)
@@ -1101,8 +1097,7 @@ void FacebookProto::ProcessFriendRequests(void*)
DB_AUTH_BLOB blob(hContact, fbu.real_name.c_str(), 0, 0, fbu.user_id.c_str(), reason.c_str());
- DBEVENTINFO dbei = { 0 };
- dbei.cbSize = sizeof(DBEVENTINFO);
+ DBEVENTINFO dbei = {};
dbei.szModule = m_szModuleName;
dbei.timestamp = ::time(NULL);
dbei.flags = DBEF_UTF;