diff options
author | George Hazan <george.hazan@gmail.com> | 2012-10-30 20:08:15 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-10-30 20:08:15 +0000 |
commit | cdff820aeb7d935d18fb66027102f69ec96bf92c (patch) | |
tree | d1746bf9d6525f235d2268b03c65280a030443cf /plugins/Clist_mw/src/clcidents.cpp | |
parent | 54afc006dbe5a48decbbf5d4f0c332b52e776ec8 (diff) |
minor clists' code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@2118 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_mw/src/clcidents.cpp')
-rw-r--r-- | plugins/Clist_mw/src/clcidents.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/Clist_mw/src/clcidents.cpp b/plugins/Clist_mw/src/clcidents.cpp index 58517fa8c0..2d706916a9 100644 --- a/plugins/Clist_mw/src/clcidents.cpp +++ b/plugins/Clist_mw/src/clcidents.cpp @@ -27,7 +27,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. /* the CLC uses 3 different ways to identify elements in its list, this file
contains routines to convert between them.
-1) struct ClcContact/struct ClcGroup pair. Only ever used within the duration
+1) struct ClcContact/ClcGroup pair. Only ever used within the duration
of a single operation, but used at some point in nearly everything
2) index integer. The 0-based number of the item from the top. Only visible
items are counted (ie not closed groups). Used for saving selection and drag
@@ -41,7 +41,7 @@ exclusively externally 2->1: GetRowByIndex()
*/
-int GetRowsPriorTo(struct ClcGroup *group,struct ClcGroup *subgroup,int contactIndex)
+int GetRowsPriorTo(ClcGroup *group,ClcGroup *subgroup,int contactIndex)
{
int count = 0;
@@ -143,11 +143,11 @@ void SetClcContactCacheItem(struct ClcData *dat,HANDLE hContact,void *contact) }
}
-int FindItem(HWND hwnd,struct ClcData *dat,HANDLE hItem,struct ClcContact **contact,struct ClcGroup **subgroup,int *isVisible)
+int FindItem(HWND hwnd,struct ClcData *dat,HANDLE hItem,struct ClcContact **contact,ClcGroup **subgroup,int *isVisible)
{
int index = 0, i;
int nowVisible = 1;
- struct ClcGroup *group = &dat->list;
+ ClcGroup *group = &dat->list;
group->scanIndex = 0;
@@ -178,7 +178,7 @@ int FindItem(HWND hwnd,struct ClcData *dat,HANDLE hItem,struct ClcContact **cont for (;;) {
if (group->scanIndex == group->cl.count) {
- struct ClcGroup *tgroup;
+ ClcGroup *tgroup;
group = group->parent;
if (group == NULL)
break;
@@ -223,7 +223,7 @@ int FindItem(HWND hwnd,struct ClcData *dat,HANDLE hItem,struct ClcContact **cont }
if (group->cl.items[group->scanIndex]->type == CLCIT_GROUP) {
- struct ClcGroup* save = group;
+ ClcGroup* save = group;
group = group->cl.items[group->scanIndex]->group;
group->scanIndex = 0;
nowVisible &= group->expanded;
@@ -234,7 +234,7 @@ int FindItem(HWND hwnd,struct ClcData *dat,HANDLE hItem,struct ClcContact **cont return 0;
}
#define CacheArrSize 255
-struct ClcGroup *CacheIndex[CacheArrSize] = {NULL};
+ClcGroup *CacheIndex[CacheArrSize] = {NULL};
boolean CacheIndexClear = TRUE;
void ClearRowByIndexCache()
{
@@ -244,10 +244,10 @@ void ClearRowByIndexCache() }
}
-int GetRowByIndex(struct ClcData *dat,int testindex,struct ClcContact **contact,struct ClcGroup **subgroup)
+int GetRowByIndex(struct ClcData *dat,int testindex,struct ClcContact **contact,ClcGroup **subgroup)
{
int index = 0,i;
- struct ClcGroup *group = &dat->list;
+ ClcGroup *group = &dat->list;
if (testindex < 0) return -1;
|