From 6d6cb956a78b2dbfa7e8d62f4234d8f27b100468 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 23 Nov 2017 22:06:26 +0300 Subject: database enumerators => void* instead of LPARAM --- plugins/HistoryStats/src/mirandasettings.cpp | 4 ++-- plugins/HistoryStats/src/mirandasettings.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/HistoryStats') 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(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 -- cgit v1.2.3