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/Alarms | |
parent | 6bb0abf1e62b18e4029ae0b7b73ee47f3fe3b39d (diff) |
database enumerators => void* instead of LPARAM
Diffstat (limited to 'plugins/Alarms')
-rwxr-xr-x | plugins/Alarms/src/alarmlist.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Alarms/src/alarmlist.cpp b/plugins/Alarms/src/alarmlist.cpp index cfa1310cf1..dfeabf55a1 100755 --- a/plugins/Alarms/src/alarmlist.cpp +++ b/plugins/Alarms/src/alarmlist.cpp @@ -339,7 +339,7 @@ void LoadAlarms() }
}
-int db_enum_settings_sub_cb(const char *szSetting, LPARAM lParam)
+int db_enum_settings_sub_cb(const char *szSetting, void *lParam)
{
//quick and dirty solution, feel free to rewrite
std::list<char*> *settings = (std::list<char*>*)lParam;
@@ -393,7 +393,7 @@ void SaveAlarms() //quick and dirty solution, feel free to rewrite
//TODO: this should be done on "delete" button press instead, and for selected alrams only
std::list<char*> settings;
- db_enum_settings(0, &db_enum_settings_sub_cb, MODULE, (void*)&settings);
+ db_enum_settings(0, &db_enum_settings_sub_cb, MODULE, &settings);
for (std::list<char*>::iterator i = settings.begin(), end = settings.end(); i != end; ++i)
{
db_unset(0, MODULE, *i);
|