summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-01-02 19:26:45 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-01-02 19:26:45 +0000
commit006238c7b97bd68b99667146f1b5df1f3661f470 (patch)
tree4866a23bc9ff153fa1bdd8ebf8ce841fa37a163e /src
parent0b3fe08754bb75dfa1552441bc2bfa958eaa3790 (diff)
code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@11725 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r--src/modules/database/dbintf.cpp20
1 files changed, 10 insertions, 10 deletions
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<DATABASELINK> 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) {