summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_misc.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-07-20 18:37:03 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-07-20 18:37:03 +0000
commit4ad5767f652e0ffd3ebf7df8d8f62a682277faa1 (patch)
tree009f4d4267d0d4e451b74140125b5816701860fb /protocols/JabberG/src/jabber_misc.cpp
parent8761e793032de3e266a0cb9582327367c6172467 (diff)
- numerous fixes for ineffective xmlGetText() calls;
- common picture type detection code extracted to the separate function; - code cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@5431 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_misc.cpp')
-rw-r--r--protocols/JabberG/src/jabber_misc.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/protocols/JabberG/src/jabber_misc.cpp b/protocols/JabberG/src/jabber_misc.cpp
index b8b42953de..eb0f091f22 100644
--- a/protocols/JabberG/src/jabber_misc.cpp
+++ b/protocols/JabberG/src/jabber_misc.cpp
@@ -77,7 +77,7 @@ static void JabberContactListCreateClistGroup(TCHAR* groupName)
_itoa(i, str, 10);
if ( db_get_ts(NULL, "CListGroups", str, &dbv))
break;
- TCHAR* name = dbv.ptszVal;
+ TCHAR *name = dbv.ptszVal;
if (name[0]!='\0' && !_tcscmp(name+1, groupName)) {
// Already exists, no need to create
db_free(&dbv);
@@ -99,7 +99,7 @@ void JabberContactListCreateGroup(TCHAR* groupName)
{
TCHAR name[128], *p;
- if (groupName==NULL || groupName[0]=='\0' || groupName[0]=='\\') return;
+ if (groupName == NULL || groupName[0]=='\0' || groupName[0]=='\\') return;
_tcsncpy(name, groupName, SIZEOF(name));
name[ SIZEOF(name)-1] = '\0';
@@ -155,10 +155,10 @@ void CJabberProto::DBAddAuthRequest(const TCHAR *jid, const TCHAR *nick)
HANDLE CJabberProto::DBCreateContact(const TCHAR *jid, const TCHAR *nick, BOOL temporary, BOOL stripResource)
{
HANDLE hContact;
- TCHAR* s, *p, *q;
+ TCHAR *s, *p, *q;
size_t len;
- if (jid==NULL || jid[0]=='\0')
+ if (jid == NULL || jid[0]=='\0')
return NULL;
s = mir_tstrdup(jid);
@@ -168,7 +168,7 @@ HANDLE CJabberProto::DBCreateContact(const TCHAR *jid, const TCHAR *nick, BOOL t
if ((q = _tcschr(p, '/')) != NULL)
*q = '\0';
- if ( !stripResource && q!=NULL) // so that resource is not stripped
+ if ( !stripResource && q != NULL) // so that resource is not stripped
*q = '/';
len = _tcslen(s);
@@ -252,7 +252,7 @@ void CJabberProto::InitCustomFolders(void)
void CJabberProto::GetAvatarFileName(HANDLE hContact, TCHAR* pszDest, size_t cbLen)
{
size_t tPathLen;
- TCHAR* path = (TCHAR*)alloca(cbLen * sizeof(TCHAR));
+ TCHAR *path = (TCHAR*)alloca(cbLen * sizeof(TCHAR));
InitCustomFolders();
@@ -394,7 +394,7 @@ TCHAR* EscapeChatTags(TCHAR* pszText)
if (nChars == 0)
return mir_tstrdup(pszText);
- TCHAR* pszNewText = (TCHAR*)mir_alloc(sizeof(TCHAR)*(_tcslen(pszText) + 1 + nChars)), *s, *d;
+ TCHAR *pszNewText = (TCHAR*)mir_alloc(sizeof(TCHAR)*(_tcslen(pszText) + 1 + nChars)), *s, *d;
if (pszNewText == NULL)
return mir_tstrdup(pszText);
@@ -409,7 +409,7 @@ TCHAR* EscapeChatTags(TCHAR* pszText)
TCHAR* UnEscapeChatTags(TCHAR* str_in)
{
- TCHAR* s = str_in, *d = str_in;
+ TCHAR *s = str_in, *d = str_in;
while (*s) {
if (*s == '%' && s[1] == '%')
s++;