diff options
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/FacebookRM/src/proto.cpp | 2 | ||||
-rwxr-xr-x | protocols/JabberG/src/jabber_proto.cpp | 2 | ||||
-rw-r--r-- | protocols/SkypeWeb/src/skype_db.cpp | 2 | ||||
-rw-r--r-- | protocols/Steam/src/steam_events.cpp | 2 | ||||
-rw-r--r-- | protocols/Tox/src/tox_messages.cpp | 2 | ||||
-rw-r--r-- | protocols/Twitter/src/proto.cpp | 2 | ||||
-rw-r--r-- | protocols/VKontakte/src/vk_proto.cpp | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/protocols/FacebookRM/src/proto.cpp b/protocols/FacebookRM/src/proto.cpp index 294a3411b6..b1963101b7 100644 --- a/protocols/FacebookRM/src/proto.cpp +++ b/protocols/FacebookRM/src/proto.cpp @@ -100,7 +100,7 @@ FacebookProto::FacebookProto(const char* proto_name, const wchar_t* username) : // register special type of event // there's no need to declare the special service for getting text // because a blob contains only text - DBEVENTTYPEDESCR evtype = { sizeof(evtype) }; + DBEVENTTYPEDESCR evtype = {}; evtype.module = m_szModuleName; evtype.eventType = FACEBOOK_EVENTTYPE_CALL; evtype.descr = LPGEN("Video call"); diff --git a/protocols/JabberG/src/jabber_proto.cpp b/protocols/JabberG/src/jabber_proto.cpp index 2803329e83..ff84776acf 100755 --- a/protocols/JabberG/src/jabber_proto.cpp +++ b/protocols/JabberG/src/jabber_proto.cpp @@ -289,7 +289,7 @@ void CJabberProto::OnModulesLoaded() HookProtoEvent(ME_MSG_ICONPRESSED, &CJabberProto::OnProcessSrmmIconClick);
HookProtoEvent(ME_MSG_WINDOWEVENT, &CJabberProto::OnProcessSrmmEvent);
- DBEVENTTYPEDESCR dbEventType = { sizeof(dbEventType) };
+ DBEVENTTYPEDESCR dbEventType = {};
dbEventType.module = m_szModuleName;
dbEventType.eventType = EVENTTYPE_JABBER_CHATSTATES;
dbEventType.descr = "Chat state notifications";
diff --git a/protocols/SkypeWeb/src/skype_db.cpp b/protocols/SkypeWeb/src/skype_db.cpp index d253b9219a..79979b428d 100644 --- a/protocols/SkypeWeb/src/skype_db.cpp +++ b/protocols/SkypeWeb/src/skype_db.cpp @@ -117,7 +117,7 @@ void CSkypeProto::InitDBEvents() db_set_resident(m_szModuleName, "LastAuthRequestTime"); // custom event - DBEVENTTYPEDESCR dbEventType = { sizeof(dbEventType) }; + DBEVENTTYPEDESCR dbEventType = {}; dbEventType.module = m_szModuleName; dbEventType.flags = DETF_HISTORY | DETF_MSGWINDOW; dbEventType.iconService = MODULE "/GetEventIcon"; diff --git a/protocols/Steam/src/steam_events.cpp b/protocols/Steam/src/steam_events.cpp index 11411a00d5..dc00158952 100644 --- a/protocols/Steam/src/steam_events.cpp +++ b/protocols/Steam/src/steam_events.cpp @@ -8,7 +8,7 @@ void CSteamProto::OnModulesLoaded() HookProtoEvent(ME_MSG_PRECREATEEVENT, &CSteamProto::OnPreCreateMessage); // Register custom db event - DBEVENTTYPEDESCR dbEventType = { sizeof(dbEventType) }; + DBEVENTTYPEDESCR dbEventType = {}; dbEventType.module = m_szModuleName; dbEventType.eventType = EVENTTYPE_STEAM_CHATSTATES; dbEventType.descr = "Chat state notifications"; diff --git a/protocols/Tox/src/tox_messages.cpp b/protocols/Tox/src/tox_messages.cpp index cd327a7146..cce56c5a10 100644 --- a/protocols/Tox/src/tox_messages.cpp +++ b/protocols/Tox/src/tox_messages.cpp @@ -2,7 +2,7 @@ void CToxProto::InitCustomDbEvents()
{
- DBEVENTTYPEDESCR dbEventType = { sizeof(dbEventType) };
+ DBEVENTTYPEDESCR dbEventType = {};
dbEventType.module = m_szModuleName;
dbEventType.flags = DETF_HISTORY | DETF_MSGWINDOW;
diff --git a/protocols/Twitter/src/proto.cpp b/protocols/Twitter/src/proto.cpp index e7d1e8806f..4f2974837e 100644 --- a/protocols/Twitter/src/proto.cpp +++ b/protocols/Twitter/src/proto.cpp @@ -291,7 +291,7 @@ void TwitterProto::OnModulesLoaded() gcr.iMaxText = 159;
Chat_Register(&gcr);
- DBEVENTTYPEDESCR evt = { sizeof(evt) };
+ DBEVENTTYPEDESCR evt = {};
evt.eventType = TWITTER_DB_EVENT_TYPE_TWEET;
evt.module = m_szModuleName;
evt.descr = "Tweet";
diff --git a/protocols/VKontakte/src/vk_proto.cpp b/protocols/VKontakte/src/vk_proto.cpp index 8ac67016d7..1ad8b6abd3 100644 --- a/protocols/VKontakte/src/vk_proto.cpp +++ b/protocols/VKontakte/src/vk_proto.cpp @@ -454,7 +454,7 @@ void CVkProto::MsgPopup(const wchar_t *wszMsg, const wchar_t *wszTitle, bool err void CVkProto::InitDBCustomEvents()
{
// custom event
- DBEVENTTYPEDESCR dbEventType = { sizeof(dbEventType) };
+ DBEVENTTYPEDESCR dbEventType = {};
dbEventType.module = m_szModuleName;
dbEventType.flags = DETF_HISTORY | DETF_MSGWINDOW;
|