From ddba4ede6b451d0cfcd0d32b5180fbd0689966bf Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 10 Feb 2014 08:04:30 +0000 Subject: - HANDLE hContact => HCONTACT - GCF_* prefix was added to chat constants to avoid name conflicts git-svn-id: http://svn.miranda-ng.org/main/trunk@8078 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/RemovePersonalSettings/src/rps.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'plugins/RemovePersonalSettings/src/rps.cpp') diff --git a/plugins/RemovePersonalSettings/src/rps.cpp b/plugins/RemovePersonalSettings/src/rps.cpp index d1e8a698ea..0583087e57 100644 --- a/plugins/RemovePersonalSettings/src/rps.cpp +++ b/plugins/RemovePersonalSettings/src/rps.cpp @@ -97,7 +97,7 @@ BOOL GetSettings(const char *section, char *buffer, size_t bufferSize); void DeleteFileOrFolder(const char *name); void DeleteSetting(const char *setting); void DeleteSettingEx(const char *szModule, const char *szSetting); -BOOL isMetaContact(HANDLE hContact); +BOOL isMetaContact(HCONTACT hContact); @@ -222,9 +222,8 @@ void SetProtocolsOffline() void RemoveUsers() { if ( GetSettingBool("GlobalSettings", "RemoveAllUsers", TRUE) ) { - HANDLE hContact; + HCONTACT hContact, hContactOld; HANDLE hDbEvent; - HANDLE hContactOld; // To be faster, remove first all metacontacts (because it syncs histories) hContact = db_find_first(); @@ -232,14 +231,14 @@ void RemoveUsers() hContactOld = hContact; hContact = db_find_next(hContact); - if ( isMetaContact(hContactOld) ) - CallService(MS_DB_CONTACT_DELETE, (WPARAM) hContactOld, 0); + if (isMetaContact(hContactOld) ) + CallService(MS_DB_CONTACT_DELETE, (WPARAM)hContactOld, 0); } // Now delete all left-overs hContact = db_find_first(); while(hContact != NULL) { - CallService(MS_DB_CONTACT_DELETE, (WPARAM) hContact, 0); + CallService(MS_DB_CONTACT_DELETE, (WPARAM)hContact, 0); hContact = db_find_first(); } @@ -614,7 +613,7 @@ void DeleteFileOrFolder(const char *name) } -BOOL isMetaContact(HANDLE hContact) +BOOL isMetaContact(HCONTACT hContact) { return lstrcmpA(GetContactProto(hContact), METACONTACTS_PROTOCOL_NAME) == 0; } -- cgit v1.2.3