summaryrefslogtreecommitdiff
path: root/plugins/HistoryStats/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/HistoryStats/src
parent6bb0abf1e62b18e4029ae0b7b73ee47f3fe3b39d (diff)
database enumerators => void* instead of LPARAM
Diffstat (limited to 'plugins/HistoryStats/src')
-rw-r--r--plugins/HistoryStats/src/mirandasettings.cpp4
-rw-r--r--plugins/HistoryStats/src/mirandasettings.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/HistoryStats/src/mirandasettings.cpp b/plugins/HistoryStats/src/mirandasettings.cpp
index a05b843a65..f409a51844 100644
--- a/plugins/HistoryStats/src/mirandasettings.cpp
+++ b/plugins/HistoryStats/src/mirandasettings.cpp
@@ -128,7 +128,7 @@ bool MirandaSettings::delSetting(const char* szSetting)
return db_unset(m_hContact, m_strModule.c_str(), szSetting) == 0;
}
-int MirandaSettings::enumSettingsProc(const char* szSetting, LPARAM lParam)
+int MirandaSettings::enumSettingsProc(const char* szSetting, void *lParam)
{
SetInserter* pInserter = reinterpret_cast<SetInserter*>(lParam);
@@ -139,5 +139,5 @@ int MirandaSettings::enumSettingsProc(const char* szSetting, LPARAM lParam)
void MirandaSettings::enumSettings(const SetInserter& insertIterator)
{
- db_enum_settings(m_hContact, enumSettingsProc, m_strModule.c_str(), &insertIterator);
+ db_enum_settings(m_hContact, enumSettingsProc, m_strModule.c_str(), (void*)&insertIterator);
}
diff --git a/plugins/HistoryStats/src/mirandasettings.h b/plugins/HistoryStats/src/mirandasettings.h
index c8671faa4c..e4787c255d 100644
--- a/plugins/HistoryStats/src/mirandasettings.h
+++ b/plugins/HistoryStats/src/mirandasettings.h
@@ -22,7 +22,7 @@ private:
ext::a::string m_strModule;
private:
- static int enumSettingsProc(const char* szSetting, LPARAM lParam);
+ static int enumSettingsProc(const char* szSetting, void *lParam);
public:
// constructor