diff options
author | George Hazan <george.hazan@gmail.com> | 2015-01-16 17:49:54 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-01-16 17:49:54 +0000 |
commit | 85c0b6a96f366bdf0ca334ee7cb1877fb3f2288c (patch) | |
tree | fe07935255b7432938f282419c3ab1378524c02f /plugins/RemovePersonalSettings | |
parent | 8a09c895c4cd0e9cc87c38181ae2913dba77c30b (diff) |
MEVENT - the strict type for events, they are not HANDLE anymore
git-svn-id: http://svn.miranda-ng.org/main/trunk@11866 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/RemovePersonalSettings')
-rw-r--r-- | plugins/RemovePersonalSettings/src/rps.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/plugins/RemovePersonalSettings/src/rps.cpp b/plugins/RemovePersonalSettings/src/rps.cpp index d3b6176531..ac901b462b 100644 --- a/plugins/RemovePersonalSettings/src/rps.cpp +++ b/plugins/RemovePersonalSettings/src/rps.cpp @@ -222,13 +222,10 @@ void SetProtocolsOffline() void RemoveUsers()
{
if ( GetSettingBool("GlobalSettings", "RemoveAllUsers", TRUE) ) {
- MCONTACT hContact, hContactOld;
- HANDLE hDbEvent;
-
// To be faster, remove first all metacontacts (because it syncs histories)
- hContact = db_find_first();
+ MCONTACT hContact = db_find_first();
while(hContact != NULL) {
- hContactOld = hContact;
+ MCONTACT hContactOld = hContact;
hContact = db_find_next(hContact);
if (isMetaContact(hContactOld) )
@@ -244,11 +241,10 @@ void RemoveUsers() }
// Delete events for contacts not in list
- hDbEvent = db_event_first(0);
+ MEVENT hDbEvent = db_event_first(0);
while(hDbEvent != NULL) {
int ret = db_event_delete(0, hDbEvent);
-
hDbEvent = db_event_first(0);
}
|