summaryrefslogtreecommitdiff
path: root/src/mir_app
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 /src/mir_app
parent6bb0abf1e62b18e4029ae0b7b73ee47f3fe3b39d (diff)
database enumerators => void* instead of LPARAM
Diffstat (limited to 'src/mir_app')
-rw-r--r--src/mir_app/src/db_ini.cpp4
-rw-r--r--src/mir_app/src/proto_accs.cpp4
-rw-r--r--src/mir_app/src/srmm_toolbar.cpp2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/mir_app/src/db_ini.cpp b/src/mir_app/src/db_ini.cpp
index 0c22077b3d..c670c66917 100644
--- a/src/mir_app/src/db_ini.cpp
+++ b/src/mir_app/src/db_ini.cpp
@@ -272,7 +272,7 @@ struct SettingsList
SettingsList *next;
} *setting_items = nullptr;
-int SettingsEnumProc(const char *szSetting, LPARAM)
+int SettingsEnumProc(const char *szSetting, void *)
{
SettingsList *newItem = (SettingsList *)mir_alloc(sizeof(SettingsList));
newItem->name = mir_strdup(szSetting);
@@ -303,7 +303,7 @@ struct ESFDParam
const char *pMask;
};
-static int EnumSettingsForDeletion(const char *szSetting, LPARAM param)
+static int EnumSettingsForDeletion(const char *szSetting, void *param)
{
ESFDParam *pParam = (ESFDParam*)param;
if (wildcmpi(szSetting, pParam->pMask))
diff --git a/src/mir_app/src/proto_accs.cpp b/src/mir_app/src/proto_accs.cpp
index 1d5d5511db..0410de15a8 100644
--- a/src/mir_app/src/proto_accs.cpp
+++ b/src/mir_app/src/proto_accs.cpp
@@ -43,7 +43,7 @@ LIST<PROTOACCOUNT> accounts(10, CompareAccounts);
/////////////////////////////////////////////////////////////////////////////////////////
-static int EnumDbModules(const char *szModuleName, DWORD, LPARAM)
+static int EnumDbModules(const char *szModuleName, void*)
{
ptrA szProtoName(db_get_sa(0, szModuleName, "AM_BaseProto"));
if (szProtoName) {
@@ -128,7 +128,7 @@ typedef struct
}
enumDB_ProtoProcParam;
-static int enumDB_ProtoProc(const char* szSetting, LPARAM lParam)
+static int enumDB_ProtoProc(const char* szSetting, void *lParam)
{
if (szSetting) {
enumDB_ProtoProcParam* p = (enumDB_ProtoProcParam*)lParam;
diff --git a/src/mir_app/src/srmm_toolbar.cpp b/src/mir_app/src/srmm_toolbar.cpp
index 82758f7478..90db284edb 100644
--- a/src/mir_app/src/srmm_toolbar.cpp
+++ b/src/mir_app/src/srmm_toolbar.cpp
@@ -831,7 +831,7 @@ static void CALLBACK SrmmLoadToolbar()
DestroyHookableEvent(hHookToolBarLoadedEvt);
}
-static int ConvertToolbarData(const char *szSetting, LPARAM)
+static int ConvertToolbarData(const char *szSetting, void*)
{
DBVARIANT dbv;
if (!db_get(0, "Tab" MODULENAME, szSetting, &dbv)) {