diff options
author | George Hazan <george.hazan@gmail.com> | 2013-07-20 11:11:48 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-07-20 11:11:48 +0000 |
commit | 874cdbe42cfe376f0e72fd5fe6bad0d2f75f4ee3 (patch) | |
tree | cd6167452b51f8ac80b3a36ffb36c1e08f3c9ada /protocols/JabberG/src/jabber_chat.cpp | |
parent | 2fe00cdd66d4559cc43a5f27c19ddc79a43676eb (diff) |
code cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@5427 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_chat.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_chat.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/protocols/JabberG/src/jabber_chat.cpp b/protocols/JabberG/src/jabber_chat.cpp index acc0ec2ab5..043dc37382 100644 --- a/protocols/JabberG/src/jabber_chat.cpp +++ b/protocols/JabberG/src/jabber_chat.cpp @@ -124,15 +124,14 @@ int JabberGcGetStatus(JABBER_RESOURCE_STATUS *r) int CJabberProto::GcInit(JABBER_LIST_ITEM* item)
{
int i;
- GCSESSION gcw = {0};
- GCEVENT gce = {0};
// translate string for menus (this can't be done in initializer)
for (i = 0; i < SIZEOF(sttAffiliationItems); i++) sttAffiliationItems[i].translate();
for (i = 0; i < SIZEOF(sttRoleItems); i++) sttRoleItems[i].translate();
TCHAR* szNick = JabberNickFromJID(item->jid);
- gcw.cbSize = sizeof(GCSESSION);
+
+ GCSESSION gcw = { sizeof(GCSESSION) };
gcw.iType = GCW_CHATROOM;
gcw.pszModule = m_szModuleName;
gcw.ptszName = szNick;
@@ -143,7 +142,7 @@ int CJabberProto::GcInit(JABBER_LIST_ITEM* item) HANDLE hContact = HContactFromJID(item->jid);
if (hContact != NULL) {
DBVARIANT dbv;
- if (JABBER_LIST_ITEM* bookmark = ListGetItemPtr(LIST_BOOKMARK, item->jid))
+ if (JABBER_LIST_ITEM *bookmark = ListGetItemPtr(LIST_BOOKMARK, item->jid))
if (bookmark->name) {
if ( !db_get_ts(hContact, "CList", "MyHandle", &dbv))
db_free(&dbv);
@@ -175,7 +174,8 @@ int CJabberProto::GcInit(JABBER_LIST_ITEM* item) GCDEST gcd = { m_szModuleName, NULL, GC_EVENT_ADDGROUP };
gcd.ptszID = item->jid;
- gce.cbSize = sizeof(GCEVENT);
+
+ GCEVENT gce = { sizeof(GCEVENT) };
gce.pDest = &gcd;
gce.dwFlags = GC_TCHAR;
for (i = SIZEOF(sttStatuses)-1; i >= 0; i--) {
|