summaryrefslogtreecommitdiff
path: root/protocols/IcqOscarJ
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-06-22 13:35:02 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-06-22 13:35:02 +0000
commitb3506557a58f53ed0fc3a96c4ec4a3b8098a542d (patch)
tree520a1cb861afa7600c0553ce8b2558f725a70ed1 /protocols/IcqOscarJ
parent4625aafb053a002f0223bfbe76abfbec629feacf (diff)
- CLISTMENUITEM::cbSize - atavism removed;
- code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@14325 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/IcqOscarJ')
-rw-r--r--protocols/IcqOscarJ/src/icq_menu.cpp4
-rw-r--r--protocols/IcqOscarJ/src/icq_xstatus.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/protocols/IcqOscarJ/src/icq_menu.cpp b/protocols/IcqOscarJ/src/icq_menu.cpp
index 8114a6e72d..7ada6453fc 100644
--- a/protocols/IcqOscarJ/src/icq_menu.cpp
+++ b/protocols/IcqOscarJ/src/icq_menu.cpp
@@ -111,7 +111,7 @@ void g_MenuInit(void)
char str[MAXMODULELABELLENGTH], *pszDest = str + 3;
mir_strcpy(str, "ICQ");
- CLISTMENUITEM mi = { sizeof(mi) };
+ CLISTMENUITEM mi = { 0 };
mi.pszService = str;
// "Request authorization"
@@ -204,7 +204,7 @@ int CIcqProto::OnPreBuildContactMenu(WPARAM hContact, LPARAM)
Menu_ShowItem(g_hContactMenuItems[ICMI_XSTATUS_DETAILS], m_bHideXStatusUI ? 0 : bXStatus != 0);
if (bXStatus && !m_bHideXStatusUI) {
- CLISTMENUITEM clmi = { sizeof(clmi) };
+ CLISTMENUITEM clmi = { 0 };
clmi.flags = CMIM_ICON;
if (bXStatus > 0 && bXStatus <= XSTATUS_COUNT)
clmi.hIcon = getXStatusIcon(bXStatus, LR_SHARED);
diff --git a/protocols/IcqOscarJ/src/icq_xstatus.cpp b/protocols/IcqOscarJ/src/icq_xstatus.cpp
index d9d87ad116..a82e72e5dd 100644
--- a/protocols/IcqOscarJ/src/icq_xstatus.cpp
+++ b/protocols/IcqOscarJ/src/icq_xstatus.cpp
@@ -780,7 +780,7 @@ void CIcqProto::setXStatusEx(BYTE bXStatus, BYTE bQuiet)
BYTE bOldXStatus = getByte(DBSETTING_XSTATUS_ID, 0);
if (!m_bHideXStatusUI) {
- CLISTMENUITEM mi = { sizeof(mi) };
+ CLISTMENUITEM mi = { 0 };
if (bOldXStatus <= XSTATUS_COUNT) {
mi.flags = CMIM_FLAGS;
Menu_ModifyItem(hXStatusItems[bOldXStatus], &mi);
@@ -859,7 +859,7 @@ void CIcqProto::InitXStatusItems(BOOL bAllowStatus)
mir_snprintf(szItem, _countof(szItem), Translate("%s Custom Status"), m_szModuleName);
- CLISTMENUITEM mi = { sizeof(mi) };
+ CLISTMENUITEM mi = { 0 };
mi.pszPopupName = szItem;
mi.popupPosition = 500084000;
mi.position = 2000040000;