diff options
author | George Hazan <george.hazan@gmail.com> | 2016-05-23 12:26:03 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-05-23 12:26:03 +0000 |
commit | 0c4dc97b703e93e2503c9cabedaa6c42984d0f00 (patch) | |
tree | f1a46a67fe7bb62ed8556d0a0a8cecb65baddea3 /src | |
parent | 9f0105daab3c080213ebb30d3a6449bb3d77e37f (diff) |
- we don't drop data cache upon the embedded clists rebuild;
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@16862 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/clcitems.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mir_app/src/clcitems.cpp b/src/mir_app/src/clcitems.cpp index 5342c3b5b3..c679103251 100644 --- a/src/mir_app/src/clcitems.cpp +++ b/src/mir_app/src/clcitems.cpp @@ -68,7 +68,7 @@ ClcGroup* fnAddGroup(HWND hwnd, ClcData *dat, const TCHAR *szName, DWORD flags, continue; compareResult = mir_tstrcmp(szThisField, group->cl.items[i]->szText); if (compareResult == 0) { - if (pNextField == NULL && flags != (DWORD) - 1) { + if (pNextField == NULL && flags != (DWORD)-1) { group->cl.items[i]->groupId = (WORD) groupId; group = group->cl.items[i]->group; group->expanded = (flags & GROUPF_EXPANDED) != 0; @@ -96,7 +96,7 @@ ClcGroup* fnAddGroup(HWND hwnd, ClcData *dat, const TCHAR *szName, DWORD flags, group = group->cl.items[i]->group; memset(&group->cl, 0, sizeof(group->cl)); group->cl.increment = 10; - if (flags == (DWORD) - 1 || pNextField != NULL) { + if (flags == (DWORD)-1 || pNextField != NULL) { group->expanded = 0; group->hideOffline = 0; } @@ -106,7 +106,7 @@ ClcGroup* fnAddGroup(HWND hwnd, ClcData *dat, const TCHAR *szName, DWORD flags, } group->groupId = pNextField ? 0 : groupId; group->totalMembers = 0; - if (flags != (DWORD) - 1 && pNextField == NULL && calcTotalMembers) { + if (flags != (DWORD)-1 && pNextField == NULL && calcTotalMembers) { DWORD style = GetWindowLongPtr(hwnd, GWL_STYLE); for (MCONTACT hContact = db_find_first(); hContact; hContact = db_find_next(hContact)) { ClcCacheEntry *cache = cli.pfnGetCacheEntry(hContact); @@ -368,7 +368,7 @@ void fnRebuildEntireList(HWND hwnd, ClcData *dat) if (db_get_ts(hContact, "CList", "Group", &dbv)) group = &dat->list; else { - group = cli.pfnAddGroup(hwnd, dat, dbv.ptszVal, (DWORD) - 1, 0, 0); + group = cli.pfnAddGroup(hwnd, dat, dbv.ptszVal, (DWORD)-1, 0, 0); if (group == NULL && style & CLS_SHOWHIDDEN) group = &dat->list; mir_free(dbv.ptszVal); } |