summaryrefslogtreecommitdiff
path: root/plugins/Import/src
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/Import/src
parent6bb0abf1e62b18e4029ae0b7b73ee47f3fe3b39d (diff)
database enumerators => void* instead of LPARAM
Diffstat (limited to 'plugins/Import/src')
-rw-r--r--plugins/Import/src/import.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/Import/src/import.cpp b/plugins/Import/src/import.cpp
index 80ca2367d1..92b8933439 100644
--- a/plugins/Import/src/import.cpp
+++ b/plugins/Import/src/import.cpp
@@ -153,9 +153,9 @@ static MCONTACT HContactFromID(char *pszProtoName, char *pszSetting, wchar_t *pw
/////////////////////////////////////////////////////////////////////////////////////////
-static int CopySettingsEnum(const char *szSetting, LPARAM lParam)
+static int CopySettingsEnum(const char *szSetting, void *param)
{
- LIST<char> *pSettings = (LIST<char>*)lParam;
+ LIST<char> *pSettings = (LIST<char>*)param;
pSettings->insert(mir_strdup(szSetting));
return 0;
}
@@ -549,9 +549,9 @@ struct ImportContactData
const char *szSrcProto, *szDstProto;
};
-int ModulesEnumProc(const char *szModuleName, DWORD, LPARAM lParam)
+int ModulesEnumProc(const char *szModuleName, void *pParam)
{
- ImportContactData *icd = (ImportContactData*)lParam;
+ ImportContactData *icd = (ImportContactData*)pParam;
if (!mir_strcmp(icd->szSrcProto, szModuleName))
CopySettings(icd->from, szModuleName, icd->to, icd->szDstProto);
else if (!mir_strcmp(szModuleName, "Protocol"))
@@ -572,9 +572,9 @@ void ImportContactSettings(AccountMap *pda, MCONTACT hSrc, MCONTACT hDst)
/////////////////////////////////////////////////////////////////////////////////////////
-static int ImportGroup(const char* szSettingName, LPARAM lParam)
+static int ImportGroup(const char* szSettingName, void *param)
{
- int *pnGroups = (int*)lParam;
+ int *pnGroups = (int*)param;
wchar_t *tszGroup = myGetWs(NULL, "CListGroups", szSettingName);
if (tszGroup != nullptr) {
@@ -802,7 +802,7 @@ static MCONTACT ImportContact(MCONTACT hSrc)
/////////////////////////////////////////////////////////////////////////////////////////
// copying system settings
-static int CopySystemSettings(const char *szModuleName, DWORD, LPARAM param)
+static int CopySystemSettings(const char *szModuleName, void *param)
{
LIST<char> *arSkippedAccs = (LIST<char>*)param;
if (!arSkippedAccs->find((char*)szModuleName))