From 5434c7b224bafd30c382f0590a55c921dfedea54 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 27 Jan 2013 18:11:22 +0000 Subject: - fix for the Jabber chat's Member Info dialog - ++i -> i++ git-svn-id: http://svn.miranda-ng.org/main/trunk@3310 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/JabberG/src/jabber_frame.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'protocols/JabberG/src/jabber_frame.cpp') diff --git a/protocols/JabberG/src/jabber_frame.cpp b/protocols/JabberG/src/jabber_frame.cpp index f5e4b2aadc..c4f263e52e 100644 --- a/protocols/JabberG/src/jabber_frame.cpp +++ b/protocols/JabberG/src/jabber_frame.cpp @@ -200,7 +200,7 @@ LRESULT CJabberInfoFrame::WndProc(UINT msg, WPARAM wParam, LPARAM lParam) case WM_LBUTTONDOWN: { POINT pt = { LOWORD(lParam), HIWORD(lParam) }; - for (int i = 0; i < m_pItems.getCount(); ++i) + for (int i = 0; i < m_pItems.getCount(); i++) if (m_pItems[i].m_onEvent && PtInRect(&m_pItems[i].m_rcItem, pt)) { m_clickedItem = i; return 0; @@ -413,7 +413,7 @@ void CJabberInfoFrame::PaintNormal(HDC hdc) int line_height = cy_icon + SZ_LINEPADDING; int cy = SZ_FRAMEPADDING; - for (int i = 0; i < m_pItems.getCount(); ++i) { + for (int i = 0; i < m_pItems.getCount(); i++) { CJabberInfoFrameItem &item = m_pItems[i]; if ( !item.m_bShow) { @@ -483,7 +483,7 @@ void CJabberInfoFrame::ShowInfoItem(char *pszName, bool bShow) { bool bUpdate = false; size_t length = strlen(pszName); - for (int i = 0; i < m_pItems.getCount(); ++i) + for (int i = 0; i < m_pItems.getCount(); i++) if ((m_pItems[i].m_bShow != bShow) && !strncmp(m_pItems[i].m_pszName, pszName, length)) { m_pItems[i].m_bShow = bShow; m_hiddenItemCount += bShow ? -1 : 1; @@ -498,7 +498,7 @@ void CJabberInfoFrame::RemoveInfoItem(char *pszName) { bool bUpdate = false; size_t length = strlen(pszName); - for (int i = 0; i < m_pItems.getCount(); ++i) + for (int i = 0; i < m_pItems.getCount(); i++) if ( !strncmp(m_pItems[i].m_pszName, pszName, length)) { if ( !m_pItems[i].m_bShow) --m_hiddenItemCount; RemoveTooltip(m_pItems[i].m_tooltipId); -- cgit v1.2.3