summaryrefslogtreecommitdiff
path: root/src/modules/clist/clcidents.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-02-10 08:04:30 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-02-10 08:04:30 +0000
commitddba4ede6b451d0cfcd0d32b5180fbd0689966bf (patch)
tree5d74f37a7013d13b92c182628d6b68a58e148ae4 /src/modules/clist/clcidents.cpp
parentc39340bf493a1745a41317bbf937fc7eb6cbb26a (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 'src/modules/clist/clcidents.cpp')
-rw-r--r--src/modules/clist/clcidents.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/clist/clcidents.cpp b/src/modules/clist/clcidents.cpp
index 72279117ab..5ec0b48600 100644
--- a/src/modules/clist/clcidents.cpp
+++ b/src/modules/clist/clcidents.cpp
@@ -176,20 +176,20 @@ int fnGetRowByIndex(struct ClcData *dat, int testindex, ClcContact **contact, Cl
return -1;
}
-HANDLE fnContactToHItem(ClcContact * contact)
+HANDLE fnContactToHItem(ClcContact *contact)
{
switch (contact->type) {
case CLCIT_CONTACT:
return contact->hContact;
case CLCIT_GROUP:
- return (HANDLE) (contact->groupId | HCONTACT_ISGROUP);
+ return (HCONTACT)(contact->groupId | HCONTACT_ISGROUP);
case CLCIT_INFO:
- return (HANDLE) ((UINT_PTR) contact->hContact | HCONTACT_ISINFO);
+ return (HCONTACT)((UINT_PTR)contact->hContact | HCONTACT_ISINFO);
}
return NULL;
}
-HANDLE fnContactToItemHandle(ClcContact * contact, DWORD * nmFlags)
+HANDLE fnContactToItemHandle(ClcContact *contact, DWORD *nmFlags)
{
switch (contact->type) {
case CLCIT_CONTACT:
@@ -197,11 +197,11 @@ HANDLE fnContactToItemHandle(ClcContact * contact, DWORD * nmFlags)
case CLCIT_GROUP:
if (nmFlags)
*nmFlags |= CLNF_ISGROUP;
- return (HANDLE) contact->groupId;
+ return (HCONTACT)contact->groupId;
case CLCIT_INFO:
if (nmFlags)
*nmFlags |= CLNF_ISINFO;
- return (HANDLE) ((UINT_PTR) contact->hContact | HCONTACT_ISINFO);
+ return (HCONTACT)((UINT_PTR)contact->hContact | HCONTACT_ISINFO);
}
return NULL;
}