summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-05-28 10:20:32 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-05-28 10:20:32 +0000
commit19e55c9c066703b870c116740821cc6727e72697 (patch)
treee552beebee52cee8d9ba7abb7169751b0312e378 /plugins/Clist_modern/src
parent3a80b03cb1b3813b47fa878fae9a61632bd25d51 (diff)
code simplification
git-svn-id: http://svn.miranda-ng.org/main/trunk@16880 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/src')
-rw-r--r--plugins/Clist_modern/src/modern_clcitems.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/Clist_modern/src/modern_clcitems.cpp b/plugins/Clist_modern/src/modern_clcitems.cpp
index 578a8b8fd0..08f2aed6fe 100644
--- a/plugins/Clist_modern/src/modern_clcitems.cpp
+++ b/plugins/Clist_modern/src/modern_clcitems.cpp
@@ -176,10 +176,9 @@ static ClcContact* AddContactToGroup(ClcData *dat, ClcGroup *group, MCONTACT hCo
if (group->cl[i]->type != CLCIT_INFO || !(group->cl[i]->flags & CLCIIF_BELOWCONTACTS))
break;
- i = pcli->pfnAddItemToGroup(group, i + 1);
-
- _LoadDataToContact(group->cl[i], group, dat, hContact);
- return group->cl[i];
+ ClcContact *cc = pcli->pfnAddItemToGroup(group, i + 1);
+ _LoadDataToContact(cc, group, dat, hContact);
+ return cc;
}
void cli_AddContactToTree(HWND hwnd, ClcData *dat, MCONTACT hContact, int updateTotalCount, int checkHideOffline)