summaryrefslogtreecommitdiff
path: root/src/modules/clist/clcitems.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2012-11-14 13:36:09 +0000
committerKirill Volinsky <mataes2007@gmail.com>2012-11-14 13:36:09 +0000
commit7205e006b83f8cbeb70c10507cfc2de7698cc4e9 (patch)
tree94d6a894705bdc68d013fdac5fddb55fafc67f5e /src/modules/clist/clcitems.cpp
parent1a9a5f548e8f507a60997f59a0e09d94b2d6f2b8 (diff)
tabs and spaces cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@2310 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/clist/clcitems.cpp')
-rw-r--r--src/modules/clist/clcitems.cpp24
1 files changed, 16 insertions, 8 deletions
diff --git a/src/modules/clist/clcitems.cpp b/src/modules/clist/clcitems.cpp
index 52cdae7b27..16587acc02 100644
--- a/src/modules/clist/clcitems.cpp
+++ b/src/modules/clist/clcitems.cpp
@@ -126,7 +126,8 @@ void fnFreeContact(ClcContact* p)
cli.pfnFreeGroup(p->group);
mir_free(p->group);
p->group = NULL;
-} }
+ }
+}
void fnFreeGroup(ClcGroup *group)
{
@@ -226,7 +227,7 @@ void fnAddContactToTree(HWND hwnd, struct ClcData *dat, HANDLE hContact, int upd
if (szProto != NULL)
status = DBGetContactSettingWord(hContact, szProto, "Status", ID_STATUS_OFFLINE);
- if ( DBGetContactSettingTString(hContact, "CList", "Group", &dbv))
+ if (DBGetContactSettingTString(hContact, "CList", "Group", &dbv))
group = &dat->list;
else {
group = cli.pfnAddGroup(hwnd, dat, dbv.ptszVal, (DWORD) - 1, 0, 0);
@@ -487,7 +488,9 @@ static void InsertionSort(ClcContact **pContactArray, int nArray, int (*CompareP
j++;
memmove(&pContactArray[j + 1], &pContactArray[j], sizeof(void*) * (i - j));
pContactArray[j] = testElement;
-} } }
+ }
+ }
+}
static void SortGroup(struct ClcData *dat, ClcGroup *group, int useInsertionSort)
{
@@ -497,7 +500,8 @@ static void SortGroup(struct ClcData *dat, ClcGroup *group, int useInsertionSort
if (group->cl.items[i]->type == CLCIT_DIVIDER) {
mir_free(group->cl.items[i]);
List_Remove((SortedList*)&group->cl, i);
- } }
+ }
+ }
for (i=0; i < group->cl.count; i++)
if (group->cl.items[i]->type != CLCIT_INFO)
@@ -539,7 +543,10 @@ static void SortGroup(struct ClcData *dat, ClcGroup *group, int useInsertionSort
lstrcpy(group->cl.items[i]->szText, TranslateT("Offline"));
}
break;
-} } } }
+ }
+ }
+ }
+}
void fnSortCLC(HWND hwnd, struct ClcData *dat, int useInsertionSort)
{
@@ -571,8 +578,8 @@ void fnSortCLC(HWND hwnd, struct ClcData *dat, int useInsertionSort)
if (hSelItem)
if (cli.pfnFindItem(hwnd, dat, hSelItem, &selcontact, &selgroup, NULL))
dat->selection = cli.pfnGetRowsPriorTo(&dat->list, selgroup, List_IndexOf((SortedList*)&selgroup->cl, selcontact));
-
- cli.pfnRecalcScrollBar(hwnd, dat);
+
+ cli.pfnRecalcScrollBar(hwnd, dat);
}
dat->needsResort = 0;
cli.pfnInvalidateRect(hwnd, NULL, FALSE);
@@ -675,7 +682,8 @@ void fnSaveStateAndRebuildList(HWND hwnd, struct ClcData *dat)
memcpy(group->cl.items[group->scanIndex]->iExtraImage, p->iExtraImage, sizeof(p->iExtraImage));
if (p->checked)
group->cl.items[group->scanIndex]->flags |= CONTACTF_CHECKED;
- } }
+ }
+ }
group->scanIndex++;
}