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 /plugins/TabSRMM | |
parent | 6bb0abf1e62b18e4029ae0b7b73ee47f3fe3b39d (diff) |
database enumerators => void* instead of LPARAM
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r-- | plugins/TabSRMM/src/chat_main.cpp | 2 | ||||
-rw-r--r-- | plugins/TabSRMM/src/sendlater.cpp | 6 | ||||
-rw-r--r-- | plugins/TabSRMM/src/sendlater.h | 4 | ||||
-rw-r--r-- | plugins/TabSRMM/src/sendqueue.cpp | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/plugins/TabSRMM/src/chat_main.cpp b/plugins/TabSRMM/src/chat_main.cpp index 93c5485407..395b4b0402 100644 --- a/plugins/TabSRMM/src/chat_main.cpp +++ b/plugins/TabSRMM/src/chat_main.cpp @@ -155,7 +155,7 @@ void Chat_ModulesLoaded() /////////////////////////////////////////////////////////////////////////////////////////
// load the group chat module
-static int CopyChatSetting(const char *szSetting, LPARAM param)
+static int CopyChatSetting(const char *szSetting, void *param)
{
LIST<char> *szSettings = (LIST<char>*)param;
szSettings->insert(mir_strdup(szSetting));
diff --git a/plugins/TabSRMM/src/sendlater.cpp b/plugins/TabSRMM/src/sendlater.cpp index 2858ef040a..e76b4b79e0 100644 --- a/plugins/TabSRMM/src/sendlater.cpp +++ b/plugins/TabSRMM/src/sendlater.cpp @@ -235,7 +235,7 @@ bool CSendLater::processCurrentJob() // stub used as enum proc for the database enumeration, collecting
// all entries in the SendLater module
// (static function)
-int _cdecl CSendLater::addStub(const char *szSetting, LPARAM lParam)
+int _cdecl CSendLater::addStub(const char *szSetting, void *lParam)
{
return(sendLater->addJob(szSetting, lParam));
}
@@ -272,9 +272,9 @@ void CSendLater::processContacts() //
// @param lParam: a contact handle for which the job should be scheduled
// @return 0 on failure, 1 otherwise
-int CSendLater::addJob(const char *szSetting, LPARAM lParam)
+int CSendLater::addJob(const char *szSetting, void *lParam)
{
- MCONTACT hContact = lParam;
+ MCONTACT hContact = (MCONTACT)lParam;
DBVARIANT dbv = { 0 };
char *szOrig_Utf = nullptr;
diff --git a/plugins/TabSRMM/src/sendlater.h b/plugins/TabSRMM/src/sendlater.h index 0694024616..d257488872 100644 --- a/plugins/TabSRMM/src/sendlater.h +++ b/plugins/TabSRMM/src/sendlater.h @@ -102,11 +102,11 @@ public: void flushQueue() { m_last_sendlater_processed = 0; }
bool haveJobs() const { return (m_sendLaterJobList.getCount() != 0 && m_currJob != -1); }
- static int _cdecl addStub(const char *szSetting, LPARAM lParam);
+ static int _cdecl addStub(const char *szSetting, void *lParam);
bool processCurrentJob();
void processContacts();
- int addJob(const char *szSetting, LPARAM lParam);
+ int addJob(const char *szSetting, void *lParam);
void addContact(const MCONTACT hContact);
HANDLE processAck(const ACKDATA *ack);
diff --git a/plugins/TabSRMM/src/sendqueue.cpp b/plugins/TabSRMM/src/sendqueue.cpp index 60dc9eb154..a84eda1481 100644 --- a/plugins/TabSRMM/src/sendqueue.cpp +++ b/plugins/TabSRMM/src/sendqueue.cpp @@ -597,7 +597,7 @@ int SendQueue::doSendLater(int iJobIndex, CTabBaseDlg *dat, MCONTACT hContact, b } else { mir_snprintf(tszMsg, required, "%s%s", utf_header, job->szSendBuffer); - sendLater->addJob(tszMsg, hContact); + sendLater->addJob(tszMsg, (void*)hContact); } mir_free(tszMsg); |