summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM
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
parentfd7566b5de6b59bb18ff380cb1fa3f3f1089b70b (diff)
useless field DBEVENTINFO::cbSize removed
Diffstat (limited to 'protocols/FacebookRM')
-rw-r--r--protocols/FacebookRM/src/process.cpp11
-rw-r--r--protocols/FacebookRM/src/proto.cpp2
2 files changed, 4 insertions, 9 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;
diff --git a/protocols/FacebookRM/src/proto.cpp b/protocols/FacebookRM/src/proto.cpp
index 73ff55b9c0..0cb9fc7a37 100644
--- a/protocols/FacebookRM/src/proto.cpp
+++ b/protocols/FacebookRM/src/proto.cpp
@@ -904,7 +904,7 @@ INT_PTR FacebookProto::OnCancelFriendshipRequest(WPARAM wParam, LPARAM)
MCONTACT FacebookProto::HContactFromAuthEvent(MEVENT hEvent)
{
DWORD body[2];
- DBEVENTINFO dbei = { sizeof(dbei) };
+ DBEVENTINFO dbei = {};
dbei.cbBlob = sizeof(DWORD) * 2;
dbei.pBlob = (PBYTE)&body;