diff options
author | George Hazan <ghazan@miranda.im> | 2017-11-23 22:06:26 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-11-23 22:06:26 +0300 |
commit | 6d6cb956a78b2dbfa7e8d62f4234d8f27b100468 (patch) | |
tree | e41f29a86d93ffc0ca414e8d84c8cdd47847baeb /src/mir_core | |
parent | 6bb0abf1e62b18e4029ae0b7b73ee47f3fe3b39d (diff) |
database enumerators => void* instead of LPARAM
Diffstat (limited to 'src/mir_core')
-rw-r--r-- | src/mir_core/src/db.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mir_core/src/db.cpp b/src/mir_core/src/db.cpp index ccd0cd1e9d..15e9f2465d 100644 --- a/src/mir_core/src/db.cpp +++ b/src/mir_core/src/db.cpp @@ -45,9 +45,9 @@ MIR_CORE_DLL(MIDatabase*) db_get_current() return currDb;
}
-static int sttEnumVars(const char *szVarName, LPARAM lParam)
+static int sttEnumVars(const char *szVarName, void *param)
{
- LIST<char>* vars = (LIST<char>*)lParam;
+ LIST<char>* vars = (LIST<char>*)param;
vars->insert(mir_strdup(szVarName));
return 0;
}
@@ -92,17 +92,17 @@ MIR_CORE_DLL(int) db_is_contact(MCONTACT hContact) /////////////////////////////////////////////////////////////////////////////////////////
// enumerators
-MIR_CORE_DLL(int) db_enum_modules(DBMODULEENUMPROC pFunc, const void *param)
+MIR_CORE_DLL(int) db_enum_modules(DBMODULEENUMPROC pFunc, void *param)
{
return (currDb) ? currDb->EnumModuleNames(pFunc, param) : 0;
}
-MIR_CORE_DLL(int) db_enum_residents(DBMODULEENUMPROC pFunc, const void *param)
+MIR_CORE_DLL(int) db_enum_residents(DBMODULEENUMPROC pFunc, void *param)
{
return (currDb) ? currDb->EnumResidentSettings(pFunc, param) : 0;
}
-EXTERN_C MIR_CORE_DLL(int) db_enum_settings(MCONTACT hContact, DBSETTINGENUMPROC pFunc, const char *szModule, const void *param)
+EXTERN_C MIR_CORE_DLL(int) db_enum_settings(MCONTACT hContact, DBSETTINGENUMPROC pFunc, const char *szModule, void *param)
{
return (currDb) ? currDb->EnumContactSettings(hContact, pFunc, szModule, param) : 0;
}
|