summaryrefslogtreecommitdiff
path: root/plugins/UserInfoEx
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-11-23 22:06:26 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-11-23 22:06:26 +0300
commit6d6cb956a78b2dbfa7e8d62f4234d8f27b100468 (patch)
treee41f29a86d93ffc0ca414e8d84c8cdd47847baeb /plugins/UserInfoEx
parent6bb0abf1e62b18e4029ae0b7b73ee47f3fe3b39d (diff)
database enumerators => void* instead of LPARAM
Diffstat (limited to 'plugins/UserInfoEx')
-rw-r--r--plugins/UserInfoEx/src/mir_db.cpp10
-rw-r--r--plugins/UserInfoEx/src/mir_db.h4
2 files changed, 7 insertions, 7 deletions
diff --git a/plugins/UserInfoEx/src/mir_db.cpp b/plugins/UserInfoEx/src/mir_db.cpp
index 9d3525b342..7e42d0f682 100644
--- a/plugins/UserInfoEx/src/mir_db.cpp
+++ b/plugins/UserInfoEx/src/mir_db.cpp
@@ -76,7 +76,7 @@ void Delete(MCONTACT hContact, LPCSTR pszModule)
* @retval TRUE - always true
**/
-static int IsEmptyEnumProc(LPCSTR, LPARAM)
+static int IsEmptyEnumProc(LPCSTR, void*)
{
return 1;
}
@@ -672,16 +672,16 @@ bool Exists(MCONTACT hContact, MEVENT& hDbExistingEvent, DBEVENTINFO *dbei)
} /* namespace Events */
-int CEnumList::EnumProc(LPCSTR pszName, DWORD, LPARAM lParam)
+int CEnumList::EnumProc(LPCSTR pszName, void *pParam)
{
if (pszName)
- ((CEnumList*)lParam)->Insert(pszName);
+ ((CEnumList*)pParam)->Insert(pszName);
return 0;
}
-int CEnumList::EnumSettingsProc(LPCSTR pszName, LPARAM lParam)
+int CEnumList::EnumSettingsProc(LPCSTR pszName, void *param)
{
- return EnumProc(pszName, 0, lParam);
+ return EnumProc(pszName, param);
}
int CEnumList::CompareProc(LPCSTR p1, LPCSTR p2)
diff --git a/plugins/UserInfoEx/src/mir_db.h b/plugins/UserInfoEx/src/mir_db.h
index a9897306b5..9db1b29458 100644
--- a/plugins/UserInfoEx/src/mir_db.h
+++ b/plugins/UserInfoEx/src/mir_db.h
@@ -114,8 +114,8 @@ namespace Event {
class CEnumList : public ::LIST<CHAR>
{
- static int EnumProc (LPCSTR pszName, DWORD ofsModuleName, LPARAM lParam);
- static int EnumSettingsProc(LPCSTR pszName, LPARAM lParam);
+ static int EnumProc (LPCSTR pszName, void *param);
+ static int EnumSettingsProc(LPCSTR pszName, void *param);
static int CompareProc (LPCSTR p1, LPCSTR p2);