diff options
Diffstat (limited to 'plugins/DbEditorPP')
-rw-r--r-- | plugins/DbEditorPP/src/modsettingenum.cpp | 7 | ||||
-rw-r--r-- | plugins/DbEditorPP/src/modsettingenum.h | 2 |
2 files changed, 3 insertions, 6 deletions
diff --git a/plugins/DbEditorPP/src/modsettingenum.cpp b/plugins/DbEditorPP/src/modsettingenum.cpp index 8c315f2a70..00bac689c9 100644 --- a/plugins/DbEditorPP/src/modsettingenum.cpp +++ b/plugins/DbEditorPP/src/modsettingenum.cpp @@ -73,13 +73,10 @@ int CheckIfModuleIsEmptyProc(const char *, LPARAM) return 1;
}
-int IsModuleEmpty(MCONTACT hContact, char* szModule)
+bool IsModuleEmpty(MCONTACT hContact, char* szModule)
{
DBCONTACTENUMSETTINGS dbces;
dbces.pfnEnumProc = CheckIfModuleIsEmptyProc;
dbces.szModule = szModule;
- int retVal = CallService(MS_DB_CONTACT_ENUMSETTINGS, hContact, (LPARAM)&dbces);
- if (retVal >= 0)
- return 0;
- return 1;
+ return 0 > CallService(MS_DB_CONTACT_ENUMSETTINGS, hContact, (LPARAM)&dbces);
}
diff --git a/plugins/DbEditorPP/src/modsettingenum.h b/plugins/DbEditorPP/src/modsettingenum.h index ea37a0d00b..f46d991ac1 100644 --- a/plugins/DbEditorPP/src/modsettingenum.h +++ b/plugins/DbEditorPP/src/modsettingenum.h @@ -15,4 +15,4 @@ int EnumSettings(MCONTACT hContact, char *module, ModuleSettingLL *msll); void FreeModuleSettingLL(ModuleSettingLL *msll);
-int IsModuleEmpty(MCONTACT hContact, char *szModule);
+bool IsModuleEmpty(MCONTACT hContact, char *szModule);
|