summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_privacy.h
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_privacy.h
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_privacy.h')
-rw-r--r--protocols/JabberG/src/jabber_privacy.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/protocols/JabberG/src/jabber_privacy.h b/protocols/JabberG/src/jabber_privacy.h
index 1c06a5f56d..8e7656dbbe 100644
--- a/protocols/JabberG/src/jabber_privacy.h
+++ b/protocols/JabberG/src/jabber_privacy.h
@@ -198,7 +198,7 @@ public:
BOOL AddRule(PrivacyListRuleType type, const TCHAR *szValue, BOOL bAction, DWORD dwOrder, DWORD dwPackets)
{
CPrivacyListRule *pRule = new CPrivacyListRule(m_proto, type, szValue, bAction, dwOrder, dwPackets);
- if ( !pRule)
+ if (!pRule)
return FALSE;
pRule->SetNext(m_pRules);
m_pRules = pRule;
@@ -212,7 +212,7 @@ public:
}
BOOL RemoveRule(CPrivacyListRule *pRuleToRemove)
{
- if ( !m_pRules)
+ if (!m_pRules)
return FALSE;
if (m_pRules == pRuleToRemove) {
@@ -237,9 +237,9 @@ public:
BOOL Reorder()
{
// 0 or 1 rules?
- if ( !m_pRules)
+ if (!m_pRules)
return TRUE;
- if ( !m_pRules->GetNext()) {
+ if (!m_pRules->GetNext()) {
m_pRules->SetOrder(100);
return TRUE;
}
@@ -254,7 +254,7 @@ public:
// create pointer array for sort procedure
CPrivacyListRule **pRules = (CPrivacyListRule **)mir_alloc(dwCount * sizeof(CPrivacyListRule *));
- if ( !pRules)
+ if (!pRules)
return FALSE;
DWORD dwPos = 0;
pRule = m_pRules;
@@ -371,7 +371,7 @@ public:
{
CPrivacyList *pList = m_pLists;
while (pList) {
- if ( !_tcscmp(pList->GetListName(), szListName))
+ if (!_tcscmp(pList->GetListName(), szListName))
return pList;
pList = pList->GetNext();
}
@@ -411,7 +411,7 @@ public:
{
CPrivacyList *pList = m_pLists;
while (pList) {
- if ( !pList->IsLoaded())
+ if (!pList->IsLoaded())
return FALSE;
pList = pList->GetNext();
}