From 22d42330716a38bfe2faef08eec2b2d3cab1886d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 28 May 2016 09:20:04 +0000 Subject: SortedList emulation expunged git-svn-id: http://svn.miranda-ng.org/main/trunk@16878 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- include/m_clistint.h | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'include') diff --git a/include/m_clistint.h b/include/m_clistint.h index 61d0188423..8c312f4d63 100644 --- a/include/m_clistint.h +++ b/include/m_clistint.h @@ -78,16 +78,13 @@ struct ClcContact; struct ClcData; struct ClcCacheEntry; -struct ContactList +struct ClcGroup : public MZeroedObject { - struct ClcContact** items; - int count, limit, increment; - void* sortFunc; -}; + __forceinline ClcGroup(int _limit) : + cl(_limit) + {} -struct ClcGroup -{ - ContactList cl; + LIST cl; int expanded, hideOffline, groupId; ClcGroup *parent; int scanIndex; @@ -121,8 +118,12 @@ struct ClcContactBase ClcCacheEntry *pce; // cache is persistent, contacts aren't }; -struct ClcDataBase +struct ClcDataBase : public MZeroedObject { + __forceinline ClcDataBase() : + list(50) + {} + ClcGroup list; int rowHeight; int yScroll; -- cgit v1.2.3