diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-02 20:55:18 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-02 20:55:18 +0000 |
commit | 78c0815c4118fe24ab78cce2dc48a6232dcd824a (patch) | |
tree | 8512c50df70b8dd80c919e88ade3419207c95956 /src/modules | |
parent | ce816d83a8c75808e0eb06832592bffefe4a8dc4 (diff) |
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@270 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/database/dbini.cpp | 6 | ||||
-rw-r--r-- | src/modules/findadd/findadd.cpp | 2 | ||||
-rw-r--r-- | src/modules/xml/xmlParser.cpp | 10 |
3 files changed, 9 insertions, 9 deletions
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;
}
|