diff options
author | George Hazan <george.hazan@gmail.com> | 2014-01-21 20:04:48 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-01-21 20:04:48 +0000 |
commit | d154673f93ad95197bce8cadb995daa5bc39f5d8 (patch) | |
tree | 191522aa88f9f845a9c27b1ddb86116b87033c4b /src/modules/database/dbutils.cpp | |
parent | be50a70bfd8b3f3daf0c3351fdce6e2fea515bd7 (diff) |
minor code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@7820 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/database/dbutils.cpp')
-rw-r--r-- | src/modules/database/dbutils.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/modules/database/dbutils.cpp b/src/modules/database/dbutils.cpp index f57ce37446..977248f906 100644 --- a/src/modules/database/dbutils.cpp +++ b/src/modules/database/dbutils.cpp @@ -55,12 +55,12 @@ static INT_PTR DbEventTypeRegister(WPARAM, LPARAM lParam) p->eventIcon = et->eventIcon;
p->flags = et->flags;
}
- if ( !p->textService) {
+ if (!p->textService) {
char szServiceName[100];
mir_snprintf(szServiceName, sizeof(szServiceName), "%s/GetEventText%d", p->module, p->eventType);
p->textService = mir_strdup(szServiceName);
}
- if ( !p->iconService) {
+ if (!p->iconService) {
char szServiceName[100];
mir_snprintf(szServiceName, sizeof(szServiceName), "%s/GetEventIcon%d", p->module, p->eventType);
p->iconService = mir_strdup(szServiceName);
@@ -78,7 +78,7 @@ static INT_PTR DbEventTypeGet(WPARAM wParam, LPARAM lParam) tmp.module = (char*)wParam;
tmp.eventType = lParam;
- if ( !List_GetIndex((SortedList*)&eventTypes, &tmp, &idx))
+ if (!List_GetIndex((SortedList*)&eventTypes, &tmp, &idx))
return 0;
return (INT_PTR)eventTypes[idx];
@@ -215,13 +215,13 @@ static INT_PTR DbEventGetIcon(WPARAM wParam, LPARAM lParam) }
if (et && et->eventIcon)
icon = Skin_GetIconByHandle(et->eventIcon);
- if ( !icon) {
+ if (!icon) {
char szName[100];
mir_snprintf(szName, sizeof(szName), "eventicon_%s%d", dbei->szModule, dbei->eventType);
icon = Skin_GetIcon(szName);
}
- if ( !icon) {
+ if (!icon) {
switch(dbei->eventType) {
case EVENTTYPE_URL:
icon = LoadSkinIcon(SKINICON_EVENT_URL);
@@ -279,7 +279,7 @@ static INT_PTR DbDeleteModule(WPARAM, LPARAM lParam) static INT_PTR GetProfilePath(WPARAM wParam, LPARAM lParam)
{
- if ( !wParam || !lParam)
+ if (!wParam || !lParam)
return 1;
char *dst = (char*)lParam;
@@ -290,7 +290,7 @@ static INT_PTR GetProfilePath(WPARAM wParam, LPARAM lParam) static INT_PTR GetProfileName(WPARAM wParam, LPARAM lParam)
{
- if ( !wParam || !lParam)
+ if (!wParam || !lParam)
return 1;
char *dst = (char*)lParam;
@@ -305,7 +305,7 @@ static INT_PTR GetProfileName(WPARAM wParam, LPARAM lParam) static INT_PTR GetProfilePathW(WPARAM wParam, LPARAM lParam)
{
- if ( !wParam || !lParam)
+ if (!wParam || !lParam)
return 1;
wchar_t *dst = (wchar_t*)lParam;
@@ -354,7 +354,7 @@ int LoadEventsModule() void UnloadEventsModule()
{
- if ( !bModuleInitialized)
+ if (!bModuleInitialized)
return;
for (int i=0; i < eventTypes.getCount(); i++) {
|