summaryrefslogtreecommitdiff
path: root/protocols/IcqOscarJ
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-06-27 13:28:12 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-06-27 13:28:12 +0000
commitbc595f022d9288a033a2acbbe51e5369e11ea03d (patch)
tree00bbff67536bb63819243ed307f21d390b9a863b /protocols/IcqOscarJ
parent5b801c67f45f6f0c0cb148fca1c0e54b1a4e8f87 (diff)
unneeded variable removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@14414 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/IcqOscarJ')
-rw-r--r--protocols/IcqOscarJ/src/icq_xstatus.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/protocols/IcqOscarJ/src/icq_xstatus.cpp b/protocols/IcqOscarJ/src/icq_xstatus.cpp
index 4ac9729559..2283dadbfa 100644
--- a/protocols/IcqOscarJ/src/icq_xstatus.cpp
+++ b/protocols/IcqOscarJ/src/icq_xstatus.cpp
@@ -836,9 +836,6 @@ INT_PTR CIcqProto::menuXStatus(WPARAM, LPARAM, LPARAM fParam)
void CIcqProto::InitXStatusItems(BOOL bAllowStatus)
{
- size_t len = mir_strlen(m_szModuleName);
- int bXStatusMenuBuilt = 0;
-
BYTE bXStatus = getContactXStatus(NULL);
if (!m_bXStatusEnabled && !m_bMoodsEnabled)
@@ -867,16 +864,17 @@ void CIcqProto::InitXStatusItems(BOOL bAllowStatus)
mi.position = 2000040000;
mi.hParentMenu = hRoot;
+ int bXStatusMenuBuilt = 0;
for (int i = 0; i <= XSTATUS_COUNT; i++) {
char srvFce[MAX_PATH + 64];
mir_snprintf(srvFce, _countof(srvFce), "/menuXStatus%d", i);
mi.position++;
- if (!i)
+ if (!i)
bXStatusMenuBuilt = ProtoServiceExists(m_szModuleName, srvFce);
if (!bXStatusMenuBuilt)
- CreateProtoServiceParam(srvFce+len, &CIcqProto::menuXStatus, i);
+ CreateProtoServiceParam(srvFce, &CIcqProto::menuXStatus, i);
mi.flags = (bXStatus == i ? CMIF_CHECKED : 0);
mi.icolibItem = i ? hXStatusIcons[i-1] : NULL;