diff options
author | George Hazan <george.hazan@gmail.com> | 2014-02-10 08:04:30 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-02-10 08:04:30 +0000 |
commit | ddba4ede6b451d0cfcd0d32b5180fbd0689966bf (patch) | |
tree | 5d74f37a7013d13b92c182628d6b68a58e148ae4 /plugins/RemovePersonalSettings | |
parent | c39340bf493a1745a41317bbf937fc7eb6cbb26a (diff) |
- 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
Diffstat (limited to 'plugins/RemovePersonalSettings')
-rw-r--r-- | plugins/RemovePersonalSettings/src/rps.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
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;
}
|