diff options
author | George Hazan <george.hazan@gmail.com> | 2016-05-28 10:20:32 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-05-28 10:20:32 +0000 |
commit | 19e55c9c066703b870c116740821cc6727e72697 (patch) | |
tree | e552beebee52cee8d9ba7abb7169751b0312e378 /include | |
parent | 3a80b03cb1b3813b47fa878fae9a61632bd25d51 (diff) |
code simplification
git-svn-id: http://svn.miranda-ng.org/main/trunk@16880 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include')
-rw-r--r-- | include/delphi/m_clistint.inc | 10 | ||||
-rw-r--r-- | include/m_clistint.h | 7 |
2 files changed, 8 insertions, 9 deletions
diff --git a/include/delphi/m_clistint.inc b/include/delphi/m_clistint.inc index 09c1566154..a0a9a1a69e 100644 --- a/include/delphi/m_clistint.inc +++ b/include/delphi/m_clistint.inc @@ -335,12 +335,10 @@ type pfnFreeContact : procedure (var contact:TClcContact); cdecl;
pfnFreeGroup : procedure (var group:TClcGroup); cdecl;
- pfnAddInfoItemToGroup : function (var group:TClcGroup; flags:int; pszText:TChar):int; cdecl;
- pfnAddItemToGroup : function (var group:TClcGroup; iAboveItem:int):int; cdecl;
- pfnAddContactToGroup : function (var dat:TClcData; var group:TClcGroup;
- hContact:TMCONTACT):int; cdecl;
- pfnAddContactToTree : procedure (hwnd:HWND; var dat:TClcData; hContact:TMCONTACT;
- updateTotalCount:int; checkHideOffline:int); cdecl;
+ pfnAddInfoItemToGroup : function (var group:TClcGroup; flags:int; pszText:TChar):PClcContact; cdecl;
+ pfnAddItemToGroup : function (var group:TClcGroup; iAboveItem:int):PClcContact; cdecl;
+ pfnAddContactToGroup : function (var dat:TClcData; var group:TClcGroup; hContact:TMCONTACT):PClcContact; cdecl;
+ pfnAddContactToTree : procedure (hwnd:HWND; var dat:TClcData; hContact:TMCONTACT; updateTotalCount:int; checkHideOffline:int); cdecl;
pfnDeleteItemFromTree : procedure (hwnd:HWND; hItem:TMCONTACT); cdecl;
pfnRebuildEntireList : procedure (hwnd:HWND; var dat:TClcData); cdecl;
pfnGetGroupContentsCount : function (var group:TClcGroup; visibleOnly:int):int; cdecl;
diff --git a/include/m_clistint.h b/include/m_clistint.h index 8c312f4d63..d47aa89473 100644 --- a/include/m_clistint.h +++ b/include/m_clistint.h @@ -296,9 +296,10 @@ struct CLIST_INTERFACE void (*pfnFreeContact)(ClcContact *contact);
void (*pfnFreeGroup)(ClcGroup *group);
- int (*pfnAddInfoItemToGroup)(ClcGroup *group, int flags, const WCHAR *pszText);
- int (*pfnAddItemToGroup)(ClcGroup *group, int iAboveItem);
- int (*pfnAddContactToGroup)(struct ClcData *dat, ClcGroup *group, MCONTACT hContact);
+ ClcContact* (*pfnAddInfoItemToGroup)(ClcGroup *group, int flags, const WCHAR *pszText);
+ ClcContact* (*pfnAddItemToGroup)(ClcGroup *group, int iAboveItem);
+ ClcContact* (*pfnAddContactToGroup)(struct ClcData *dat, ClcGroup *group, MCONTACT hContact);
+
void (*pfnAddContactToTree)(HWND hwnd, struct ClcData *dat, MCONTACT hContact, int updateTotalCount, int checkHideOffline);
void (*pfnDeleteItemFromTree)(HWND hwnd, MCONTACT hItem);
void (*pfnRebuildEntireList)(HWND hwnd, struct ClcData *dat);
|