diff options
author | George Hazan <ghazan@miranda.im> | 2022-02-09 17:40:09 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-02-09 17:40:09 +0300 |
commit | a43d5bcb1e0bdafb0193662168976aac989ed922 (patch) | |
tree | c4f154f05f36626678efc64ae7a1139b30b5f4fe /plugins/DbEditorPP/src/modsettingenum.cpp | |
parent | 760867149a99443036f53c73190d53bd87039def (diff) |
db_is_module_empty & db_copy_module - new database helpers
Diffstat (limited to 'plugins/DbEditorPP/src/modsettingenum.cpp')
-rw-r--r-- | plugins/DbEditorPP/src/modsettingenum.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/plugins/DbEditorPP/src/modsettingenum.cpp b/plugins/DbEditorPP/src/modsettingenum.cpp index 0a693640fa..6137fe38a8 100644 --- a/plugins/DbEditorPP/src/modsettingenum.cpp +++ b/plugins/DbEditorPP/src/modsettingenum.cpp @@ -71,15 +71,7 @@ int EnumSettings(MCONTACT hContact, const char *module, ModuleSettingLL *msll) return 1;
}
-int CheckIfModuleIsEmptyProc(const char*, void*)
-{
- return 1;
-}
-
-int IsModuleEmpty(MCONTACT hContact, const char *module)
-{
- return 0 > db_enum_settings(hContact, CheckIfModuleIsEmptyProc, module);
-}
+/////////////////////////////////////////////////////////////////////////////////////////
static int stringCompare(const char *p1, const char *p2)
{
@@ -162,7 +154,7 @@ int fixResidentSettings() for (auto &hContact : Contacts()) {
for (ModSetLinkLinkItem *module = ModuleList.first; module; module = module->next) {
- if (IsModuleEmpty(hContact, module->name))
+ if (db_is_module_empty(hContact, module->name))
continue;
ModuleSettingLL SettingList;
|