From 85c0b6a96f366bdf0ca334ee7cb1877fb3f2288c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 16 Jan 2015 17:49:54 +0000 Subject: 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 --- plugins/RemovePersonalSettings/src/rps.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'plugins/RemovePersonalSettings/src') 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); } -- cgit v1.2.3