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 /plugins/Svc_dbepp | |
parent | ce816d83a8c75808e0eb06832592bffefe4a8dc4 (diff) |
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@270 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Svc_dbepp')
-rw-r--r-- | plugins/Svc_dbepp/exportimport.cpp | 8 | ||||
-rw-r--r-- | plugins/Svc_dbepp/main.cpp | 2 | ||||
-rw-r--r-- | plugins/Svc_dbepp/main_window.cpp | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/plugins/Svc_dbepp/exportimport.cpp b/plugins/Svc_dbepp/exportimport.cpp index 83b15e7e0a..2ac8d04e6e 100644 --- a/plugins/Svc_dbepp/exportimport.cpp +++ b/plugins/Svc_dbepp/exportimport.cpp @@ -390,7 +390,7 @@ HANDLE Clist_GroupExists(WCHAR *tszGroup) do {
_itoa(i, str, 10);
result = DBGetContactSettingTString(0, "CListGroups", str, &dbv);
- if(!result) {
+ if (!result) {
match = (!lstrcmpW(tszGroup, (LPCWSTR)&dbv.ptszVal[1]) && (lstrlenW(tszGroup) == lstrlenW((LPCWSTR)&dbv.ptszVal[1])));
DBFreeVariant(&dbv);
if(match)
@@ -543,9 +543,9 @@ void importSettings(HANDLE hContact, char *importstring ) case 'g':
case 'G':
{ char *pstr;
- for(pstr=end+2;*pstr;pstr++){
- if(*pstr=='\\'){
- switch(pstr[1]){
+ for(pstr=end+2;*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/plugins/Svc_dbepp/main.cpp b/plugins/Svc_dbepp/main.cpp index f230d1e958..be18f13e00 100644 --- a/plugins/Svc_dbepp/main.cpp +++ b/plugins/Svc_dbepp/main.cpp @@ -232,7 +232,7 @@ int ModulesLoaded(WPARAM wParam,LPARAM lParam) // Load the name order
for(i=0;i<NAMEORDERCOUNT;i++) nameOrder[i]=i;
- if(!DBGetContactSetting(NULL,"Contact","NameOrder",&dbv))
+ if (!DBGetContactSetting(NULL,"Contact","NameOrder",&dbv))
{
CopyMemory(nameOrder,dbv.pbVal,dbv.cpbVal);
DBFreeVariant(&dbv);
diff --git a/plugins/Svc_dbepp/main_window.cpp b/plugins/Svc_dbepp/main_window.cpp index 01916108ac..d7fdb75256 100644 --- a/plugins/Svc_dbepp/main_window.cpp +++ b/plugins/Svc_dbepp/main_window.cpp @@ -354,7 +354,7 @@ INT_PTR CALLBACK MainDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) GetWindowRect(hwnd,&rc2);
- if((HWND)lParam==GetDlgItem(hwnd,IDC_SPLITTER))
+ if ((HWND)lParam==GetDlgItem(hwnd,IDC_SPLITTER))
{
GetClientRect(hwnd,&rc);
pt.x=wParam; pt.y=0;
|