From 006238c7b97bd68b99667146f1b5df1f3661f470 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 2 Jan 2015 19:26:45 +0000 Subject: code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@11725 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/database/dbintf.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/modules/database/dbintf.cpp b/src/modules/database/dbintf.cpp index f39e87500d..62b7db18a3 100644 --- a/src/modules/database/dbintf.cpp +++ b/src/modules/database/dbintf.cpp @@ -47,7 +47,7 @@ static INT_PTR srvGetContactCount(WPARAM, LPARAM) static INT_PTR srvDeleteContact(WPARAM wParam, LPARAM) { - DBVARIANT dbv = {0}; + DBVARIANT dbv = { 0 }; if (!db_get_ts(wParam, "ContactPhoto", "File", &dbv)) { DeleteFile(dbv.ptszVal); db_free(&dbv); @@ -70,7 +70,7 @@ static INT_PTR srvIsDbContact(WPARAM wParam, LPARAM) /////////////////////////////////////////////////////////////////////////////// // Module chain -static INT_PTR srvEnumModuleNames(WPARAM wParam,LPARAM lParam) +static INT_PTR srvEnumModuleNames(WPARAM wParam, LPARAM lParam) { return (currDb) ? (INT_PTR)currDb->EnumModuleNames((DBMODULEENUMPROC)lParam, (void*)wParam) : 0; } @@ -78,12 +78,12 @@ static INT_PTR srvEnumModuleNames(WPARAM wParam,LPARAM lParam) /////////////////////////////////////////////////////////////////////////////// // Settings -static INT_PTR srvEnumContactSettings(WPARAM wParam,LPARAM lParam) +static INT_PTR srvEnumContactSettings(WPARAM wParam, LPARAM lParam) { return (currDb) ? (INT_PTR)currDb->EnumContactSettings(wParam, (DBCONTACTENUMSETTINGS*)lParam) : 0; } -static INT_PTR srvEnumResidentSettings(WPARAM wParam,LPARAM lParam) +static INT_PTR srvEnumResidentSettings(WPARAM wParam, LPARAM lParam) { return (currDb) ? (INT_PTR)currDb->EnumResidentSettings((DBMODULEENUMPROC)wParam, (void*)lParam) : 0; } @@ -93,7 +93,7 @@ static INT_PTR srvEnumResidentSettings(WPARAM wParam,LPARAM lParam) LIST arDbPlugins(5); -static INT_PTR srvRegisterPlugin(WPARAM wParam,LPARAM lParam) +static INT_PTR srvRegisterPlugin(WPARAM wParam, LPARAM lParam) { DATABASELINK* pPlug = (DATABASELINK*)lParam; if (pPlug == NULL) @@ -103,9 +103,9 @@ static INT_PTR srvRegisterPlugin(WPARAM wParam,LPARAM lParam) return 0; } -static INT_PTR srvFindPlugin(WPARAM wParam,LPARAM lParam) +static INT_PTR srvFindPlugin(WPARAM wParam, LPARAM lParam) { - for (int i=arDbPlugins.getCount()-1; i >= 0; i--) { + for (int i = arDbPlugins.getCount() - 1; i >= 0; i--) { int error = arDbPlugins[i]->grokHeader((TCHAR*)lParam); if (error == ERROR_SUCCESS || error == EGROKPRF_OBSOLETE) return (INT_PTR)arDbPlugins[i]; @@ -114,12 +114,12 @@ static INT_PTR srvFindPlugin(WPARAM wParam,LPARAM lParam) return NULL; } -static INT_PTR srvGetCurrentDb(WPARAM wParam,LPARAM lParam) +static INT_PTR srvGetCurrentDb(WPARAM wParam, LPARAM lParam) { return (INT_PTR)currDb; } -static INT_PTR srvInitInstance(WPARAM wParam,LPARAM lParam) +static INT_PTR srvInitInstance(WPARAM wParam, LPARAM lParam) { MIDatabase* pDb = (MIDatabase*)lParam; if (pDb != NULL) @@ -127,7 +127,7 @@ static INT_PTR srvInitInstance(WPARAM wParam,LPARAM lParam) return 0; } -static INT_PTR srvDestroyInstance(WPARAM wParam,LPARAM lParam) +static INT_PTR srvDestroyInstance(WPARAM wParam, LPARAM lParam) { MIDatabase* pDb = (MIDatabase*)lParam; if (pDb != NULL) { -- cgit v1.2.3