From 78c0815c4118fe24ab78cce2dc48a6232dcd824a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 2 Jun 2012 20:55:18 +0000 Subject: - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@270 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/core/miranda.cpp | 2 +- src/modules/database/dbini.cpp | 6 +++--- src/modules/findadd/findadd.cpp | 2 +- src/modules/xml/xmlParser.cpp | 10 +++++----- 4 files changed, 10 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/core/miranda.cpp b/src/core/miranda.cpp index 8ce9c0b0be..3ed03f8a2c 100644 --- a/src/core/miranda.cpp +++ b/src/core/miranda.cpp @@ -368,7 +368,7 @@ void* GetCurrentThreadEntryPoint() if(NtQueryInformationThread == NULL) return 0; hCurrentProcess = GetCurrentProcess(); - if(!DuplicateHandle(hCurrentProcess, GetCurrentThread(), hCurrentProcess, &hDupHandle, THREAD_QUERY_INFORMATION, FALSE, 0)){ + if(!DuplicateHandle(hCurrentProcess, GetCurrentThread(), hCurrentProcess, &hDupHandle, THREAD_QUERY_INFORMATION, FALSE, 0)) { SetLastError(ERROR_ACCESS_DENIED); return NULL; } diff --git a/src/modules/database/dbini.cpp b/src/modules/database/dbini.cpp index 01e6645593..46b622f2a9 100644 --- a/src/modules/database/dbini.cpp +++ b/src/modules/database/dbini.cpp @@ -321,9 +321,9 @@ static void ProcessIniFile(TCHAR* szIniPath, char *szSafeSections, char *szUnsaf case 'g': case 'G': { char *pstr; - for(pstr=szValue+1;*pstr;pstr++){ - if(*pstr=='\\'){ - switch(pstr[1]){ + for(pstr=szValue+1;*pstr;pstr++) { + if(*pstr=='\\') { + switch(pstr[1]) { case 'n': *pstr='\n'; break; case 't': *pstr='\t'; break; case 'r': *pstr='\r'; break; diff --git a/src/modules/findadd/findadd.cpp b/src/modules/findadd/findadd.cpp index b0bef4fef4..48dc0163eb 100644 --- a/src/modules/findadd/findadd.cpp +++ b/src/modules/findadd/findadd.cpp @@ -801,7 +801,7 @@ static INT_PTR CALLBACK DlgProcFindAdd(HWND hwndDlg, UINT msg, WPARAM wParam, LP dat->bFlexSearchResult=TRUE; psr=&(csr->psr); // check if this is column names data (psr->cbSize==0) - if ( psr->cbSize==0 ){ // blob contain info about columns + if ( psr->cbSize==0 ) { // blob contain info about columns int iColumn; LVCOLUMN lvc={0}; diff --git a/src/modules/xml/xmlParser.cpp b/src/modules/xml/xmlParser.cpp index f2afae563f..3d8dfd7b4c 100644 --- a/src/modules/xml/xmlParser.cpp +++ b/src/modules/xml/xmlParser.cpp @@ -725,8 +725,8 @@ out_of_loop1: return r; } -ToXMLStringTool::~ToXMLStringTool(){ freeBuffer(); } -void ToXMLStringTool::freeBuffer(){ if (buf) free(buf); buf=NULL; buflen=0; } +ToXMLStringTool::~ToXMLStringTool() { freeBuffer(); } +void ToXMLStringTool::freeBuffer() { if (buf) free(buf); buf=NULL; buflen=0; } XMLSTR ToXMLStringTool::toXML(XMLCSTR source) { if (!source) @@ -2889,9 +2889,9 @@ const unsigned char base64DecodeTable[] = { 98,98,98,98,98,98,98,98,98,98, 98,98,98,98,98,98 //240 -255 }; -XMLParserBase64Tool::~XMLParserBase64Tool(){ freeBuffer(); } +XMLParserBase64Tool::~XMLParserBase64Tool() { freeBuffer(); } -void XMLParserBase64Tool::freeBuffer(){ if (buf) free(buf); buf=NULL; buflen=0; } +void XMLParserBase64Tool::freeBuffer() { if (buf) free(buf); buf=NULL; buflen=0; } int XMLParserBase64Tool::encodeLength(int inlen, char formatted) { @@ -3033,7 +3033,7 @@ unsigned char *XMLParserBase64Tool::decode(XMLCSTR data, int *outlen, XMLError * if (outlen) *outlen=len; if (!len) return NULL; alloc(len+1); - if(!decode(data,(unsigned char*)buf,len,xe)){ return NULL; } + if(!decode(data,(unsigned char*)buf,len,xe)) { return NULL; } return (unsigned char*)buf; } -- cgit v1.2.3