summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_message_manager.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-01-10 13:49:11 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-01-10 13:49:11 +0000
commit73efaa00c6044d77a6c098bec38057b231ef8243 (patch)
tree07237735ddf83c6cb011188b6c4b067bdcd6b5e3 /protocols/JabberG/src/jabber_message_manager.cpp
parent183f4dfbadce9c687c66e5377274a464f6c9a72f (diff)
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
Diffstat (limited to 'protocols/JabberG/src/jabber_message_manager.cpp')
-rw-r--r--protocols/JabberG/src/jabber_message_manager.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/protocols/JabberG/src/jabber_message_manager.cpp b/protocols/JabberG/src/jabber_message_manager.cpp
index a5a9304e59..b0c7a9d9a4 100644
--- a/protocols/JabberG/src/jabber_message_manager.cpp
+++ b/protocols/JabberG/src/jabber_message_manager.cpp
@@ -65,15 +65,15 @@ bool CJabberMessageManager::HandleMessagePermanent(HXML node, ThreadData *pThrea
LPCTSTR szType = xmlGetAttrValue(node, _T("type"));
if (szType) {
- if ( !_tcsicmp(szType, _T("normal")))
+ if (!_tcsicmp(szType, _T("normal")))
messageInfo.m_nMessageType = JABBER_MESSAGE_TYPE_NORMAL;
- else if ( !_tcsicmp(szType, _T("error")))
+ else if (!_tcsicmp(szType, _T("error")))
messageInfo.m_nMessageType = JABBER_MESSAGE_TYPE_ERROR;
- else if ( !_tcsicmp(szType, _T("chat")))
+ else if (!_tcsicmp(szType, _T("chat")))
messageInfo.m_nMessageType = JABBER_MESSAGE_TYPE_CHAT;
- else if ( !_tcsicmp(szType, _T("groupchat")))
+ else if (!_tcsicmp(szType, _T("groupchat")))
messageInfo.m_nMessageType = JABBER_MESSAGE_TYPE_GROUPCHAT;
- else if ( !_tcsicmp(szType, _T("headline")))
+ else if (!_tcsicmp(szType, _T("headline")))
messageInfo.m_nMessageType = JABBER_MESSAGE_TYPE_HEADLINE;
else
return FALSE;
@@ -144,7 +144,7 @@ CJabberMessagePermanentInfo* CJabberMessageManager::AddPermanentHandler(
pInfo->m_iPriority = iPriority;
mir_cslock lck(m_cs);
- if ( !m_pPermanentHandlers)
+ if (!m_pPermanentHandlers)
m_pPermanentHandlers = pInfo;
else {
if (m_pPermanentHandlers->m_iPriority > pInfo->m_iPriority) {
@@ -165,7 +165,7 @@ CJabberMessagePermanentInfo* CJabberMessageManager::AddPermanentHandler(
bool CJabberMessageManager::DeletePermanentHandler(CJabberMessagePermanentInfo *pInfo)
{
mir_cslock lck(m_cs);
- if ( !m_pPermanentHandlers)
+ if (!m_pPermanentHandlers)
return FALSE;
if (m_pPermanentHandlers == pInfo) { // check first item