From 73efaa00c6044d77a6c098bec38057b231ef8243 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 10 Jan 2014 13:49:11 +0000 Subject: Jabber: - these long static buffers replaced with CMString; - some crazy memory allocations in chats also replaced with CMString; - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@7577 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/JabberG/src/jabber_rc.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'protocols/JabberG/src/jabber_rc.h') diff --git a/protocols/JabberG/src/jabber_rc.h b/protocols/JabberG/src/jabber_rc.h index 6409d66eed..526598a5d6 100644 --- a/protocols/JabberG/src/jabber_rc.h +++ b/protocols/JabberG/src/jabber_rc.h @@ -169,7 +169,7 @@ protected: { CJabberAdhocSession* pSession = m_pSessions; while (pSession) { - if ( !_tcscmp(pSession->GetSessionId(), szSession)) + if (!_tcscmp(pSession->GetSessionId(), szSession)) return pSession; pSession = pSession->GetNext(); } @@ -179,7 +179,7 @@ protected: CJabberAdhocSession* AddNewSession() { CJabberAdhocSession* pSession = new CJabberAdhocSession(m_pProto); - if ( !pSession) + if (!pSession) return NULL; pSession->SetNext(m_pSessions); @@ -192,7 +192,7 @@ protected: { CJabberAdhocNode* pNode = m_pNodes; while (pNode) { - if ( !_tcscmp(pNode->GetNode(), szNode)) + if (!_tcscmp(pNode->GetNode(), szNode)) return pNode; pNode = pNode->GetNext(); } @@ -201,7 +201,7 @@ protected: BOOL RemoveSession(CJabberAdhocSession* pSession) { - if ( !m_pSessions) + if (!m_pSessions) return FALSE; if (pSession == m_pSessions) { @@ -226,7 +226,7 @@ protected: BOOL _ExpireSession(DWORD dwExpireTime) { - if ( !m_pSessions) + if (!m_pSessions) return FALSE; CJabberAdhocSession* pSession = m_pSessions; @@ -277,11 +277,11 @@ public: BOOL AddNode(TCHAR* szJid, TCHAR* szNode, TCHAR* szName, JABBER_ADHOC_HANDLER pHandler) { CJabberAdhocNode* pNode = new CJabberAdhocNode(m_pProto, szJid, szNode, szName, pHandler); - if ( !pNode) + if (!pNode) return FALSE; Lock(); - if ( !m_pNodes) + if (!m_pNodes) m_pNodes = pNode; else { CJabberAdhocNode* pTmp = m_pNodes; -- cgit v1.2.3