From 6d6cb956a78b2dbfa7e8d62f4234d8f27b100468 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 23 Nov 2017 22:06:26 +0300 Subject: database enumerators => void* instead of LPARAM --- plugins/DbEditorPP/src/modsettingenum.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'plugins/DbEditorPP') diff --git a/plugins/DbEditorPP/src/modsettingenum.cpp b/plugins/DbEditorPP/src/modsettingenum.cpp index 551fc3a171..b4f4e72000 100644 --- a/plugins/DbEditorPP/src/modsettingenum.cpp +++ b/plugins/DbEditorPP/src/modsettingenum.cpp @@ -21,9 +21,9 @@ void FreeModuleSettingLL(ModuleSettingLL *msll) } -int enumModulesSettingsProc(const char *setting, DWORD, LPARAM lParam) +int enumModulesSettingsProc(const char *setting, void *pParam) { - ModuleSettingLL *msll = (ModuleSettingLL *)lParam; + ModuleSettingLL *msll = (ModuleSettingLL *)pParam; if (!msll->first) { msll->first = (ModSetLinkLinkItem *)mir_alloc(sizeof(ModSetLinkLinkItem)); if (!msll->first) @@ -59,9 +59,9 @@ int EnumModules(ModuleSettingLL *msll) // 1 = success, 0 = fail } -int enumSettingsProc(const char *setting, LPARAM lParam) +int enumSettingsProc(const char *setting, void *lParam) { - return enumModulesSettingsProc(setting, 0, lParam); + return enumModulesSettingsProc(setting, lParam); } @@ -78,7 +78,7 @@ int EnumSettings(MCONTACT hContact, const char *module, ModuleSettingLL *msll) } -int CheckIfModuleIsEmptyProc(const char *, LPARAM) +int CheckIfModuleIsEmptyProc(const char*, void*) { return 1; } @@ -100,7 +100,7 @@ LIST m_lResidentSettings(10, stringCompare); LIST m_lResidentModules(5, stringCompare); -int enumResidentProc(const char *setting, DWORD, LPARAM) +int enumResidentProc(const char *setting, void*) { m_lResidentSettings.insert(mir_strdup(setting)); @@ -170,7 +170,7 @@ int EnumResidentSettings(const char *module, ModuleSettingLL *msll) if (m_lResidentSettings[i][len] != '/' || m_lResidentSettings[i][len+1] == 0) continue; - enumModulesSettingsProc(&m_lResidentSettings[i][len+1], 0, (LPARAM)msll); + enumModulesSettingsProc(&m_lResidentSettings[i][len+1], msll); cnt++; } return cnt; @@ -187,7 +187,7 @@ int EnumResidentModules(ModuleSettingLL *msll) int cnt = 0; for (int i = 0; i < m_lResidentModules.getCount(); i++) { - enumModulesSettingsProc(m_lResidentModules[i], 0, (LPARAM)msll); + enumModulesSettingsProc(m_lResidentModules[i], msll); cnt++; } -- cgit v1.2.3