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/FavContacts/src/favlist.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'plugins/FavContacts/src/favlist.h') diff --git a/plugins/FavContacts/src/favlist.h b/plugins/FavContacts/src/favlist.h index 04ed0d20e2..c0ebd6e2d0 100644 --- a/plugins/FavContacts/src/favlist.h +++ b/plugins/FavContacts/src/favlist.h @@ -4,7 +4,7 @@ struct TContactInfo { private: - HANDLE hContact; + HCONTACT hContact; DWORD status; TCHAR *name; TCHAR *group; @@ -12,7 +12,7 @@ private: float fRate; public: - TContactInfo(HANDLE hContact, bool bManual, float fRate = 0) + TContactInfo(HCONTACT hContact, bool bManual, float fRate = 0) { DBVARIANT dbv = {0}; @@ -41,7 +41,7 @@ public: mir_free(group); } - HANDLE getHandle() const + HCONTACT getHandle() const { return hContact; } @@ -89,7 +89,7 @@ public: return nGroups; } - TContactInfo *addContact(HANDLE hContact, bool bManual) + TContactInfo *addContact(HCONTACT hContact, bool bManual) { TContactInfo *info = new TContactInfo(hContact, bManual); this->insert(info); @@ -102,7 +102,7 @@ public: nGroups = 1; - for (HANDLE hContact = db_find_first(); hContact; hContact = db_find_next(hContact)) + for (HCONTACT hContact = db_find_first(); hContact; hContact = db_find_next(hContact)) if (db_get_b(hContact, "FavContacts", "IsFavourite", 0)) { TCHAR *group = addContact(hContact, true)->getGroup(); @@ -113,7 +113,7 @@ public: int nRecent = 0; for (int i = 0; nRecent < g_Options.wMaxRecent; ++i) { - HANDLE hContact = g_contactCache->get(i); + HCONTACT hContact = g_contactCache->get(i); if (!hContact) break; if (!db_get_b(hContact, "FavContacts", "IsFavourite", 0)) { -- cgit v1.2.3