From a771a36e2859f223ceb131e556677eb653cfab73 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 2 Sep 2015 19:07:34 +0000 Subject: warning fix git-svn-id: http://svn.miranda-ng.org/main/trunk@15155 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/HistoryStats/src/mirandasettings.cpp | 4 ++-- plugins/HistoryStats/src/mirandasettings.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/HistoryStats/src/mirandasettings.cpp b/plugins/HistoryStats/src/mirandasettings.cpp index f27f5896ee..cc6623545d 100644 --- a/plugins/HistoryStats/src/mirandasettings.cpp +++ b/plugins/HistoryStats/src/mirandasettings.cpp @@ -137,7 +137,7 @@ int MirandaSettings::enumSettingsProc(const char* szSetting, LPARAM lParam) return 0; } -void MirandaSettings::enumSettings(SetInserter& insertIterator) +void MirandaSettings::enumSettings(const SetInserter& insertIterator) { - mu::db_contact::enumSettings(m_hContact, m_strModule.c_str(), enumSettingsProc, reinterpret_cast(&insertIterator)); + mu::db_contact::enumSettings(m_hContact, m_strModule.c_str(), enumSettingsProc, LPARAM(&insertIterator)); } diff --git a/plugins/HistoryStats/src/mirandasettings.h b/plugins/HistoryStats/src/mirandasettings.h index bb5cb07f56..11e743c977 100644 --- a/plugins/HistoryStats/src/mirandasettings.h +++ b/plugins/HistoryStats/src/mirandasettings.h @@ -57,7 +57,7 @@ public: bool delSetting(const char* szSetting); // enumeration - void enumSettings(SetInserter& insertIterator); + void enumSettings(const SetInserter& insertIterator); }; #endif // HISTORYSTATS_GUARD_MIRANDASETTINGS_H -- cgit v1.2.3