From bc595f022d9288a033a2acbbe51e5369e11ea03d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 27 Jun 2015 13:28:12 +0000 Subject: unneeded variable removed git-svn-id: http://svn.miranda-ng.org/main/trunk@14414 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/IcqOscarJ/src/icq_xstatus.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'protocols/IcqOscarJ/src/icq_xstatus.cpp') 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; -- cgit v1.2.3