diff options
author | George Hazan <george.hazan@gmail.com> | 2014-01-10 13:49:11 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-01-10 13:49:11 +0000 |
commit | 73efaa00c6044d77a6c098bec38057b231ef8243 (patch) | |
tree | 07237735ddf83c6cb011188b6c4b067bdcd6b5e3 /protocols/JabberG/src/jabber_disco.h | |
parent | 183f4dfbadce9c687c66e5377274a464f6c9a72f (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_disco.h')
-rw-r--r-- | protocols/JabberG/src/jabber_disco.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/protocols/JabberG/src/jabber_disco.h b/protocols/JabberG/src/jabber_disco.h index 9fbd833619..2514cf0119 100644 --- a/protocols/JabberG/src/jabber_disco.h +++ b/protocols/JabberG/src/jabber_disco.h @@ -294,11 +294,11 @@ public: }
BOOL AddFeature(const TCHAR *szFeature)
{
- if ( !szFeature)
+ if (!szFeature)
return FALSE;
CJabberSDFeature *pFeature = new CJabberSDFeature(szFeature);
- if ( !pFeature)
+ if (!pFeature)
return FALSE;
pFeature->SetNext(m_pFeatures);
@@ -308,11 +308,11 @@ public: }
BOOL AddIdentity(const TCHAR *szCategory, const TCHAR *szType, const TCHAR *szName)
{
- if ( !szCategory || !szType)
+ if (!szCategory || !szType)
return FALSE;
CJabberSDIdentity *pIdentity = new CJabberSDIdentity(szCategory, szType, szName);
- if ( !pIdentity)
+ if (!pIdentity)
return FALSE;
pIdentity->SetNext(m_pIdentities);
@@ -322,11 +322,11 @@ public: }
BOOL AddChildNode(const TCHAR *szJid, const TCHAR *szNode, const TCHAR *szName)
{
- if ( !szJid)
+ if (!szJid)
return FALSE;
CJabberSDNode *pNode = new CJabberSDNode(szJid, szNode, szName);
- if ( !pNode)
+ if (!pNode)
return FALSE;
pNode->SetNext(m_pChild);
@@ -336,7 +336,7 @@ public: }
BOOL AppendString(TCHAR **ppBuffer, TCHAR *szString)
{
- if ( !*ppBuffer) {
+ if (!*ppBuffer) {
*ppBuffer = mir_tstrdup(szString);
return TRUE;
}
@@ -463,11 +463,11 @@ public: }
CJabberSDNode* AddPrimaryNode(const TCHAR *szJid, const TCHAR *szNode, const TCHAR *szName)
{
- if ( !szJid)
+ if (!szJid)
return FALSE;
CJabberSDNode *pNode = new CJabberSDNode(szJid, szNode, szName);
- if ( !pNode)
+ if (!pNode)
return NULL;
pNode->SetNext(m_pPrimaryNodes);
|