summaryrefslogtreecommitdiff
path: root/plugins/Clist_nicer/src/viewmodes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Clist_nicer/src/viewmodes.cpp')
-rw-r--r--plugins/Clist_nicer/src/viewmodes.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/Clist_nicer/src/viewmodes.cpp b/plugins/Clist_nicer/src/viewmodes.cpp
index eb38ffa2d8..61c058a65d 100644
--- a/plugins/Clist_nicer/src/viewmodes.cpp
+++ b/plugins/Clist_nicer/src/viewmodes.cpp
@@ -1071,10 +1071,8 @@ void ApplyViewMode(const char *name)
BYTE bSaved = cfg::dat.sortOrder[0];
cfg::dat.sortOrder[0] = SORTBY_LASTMSG;
- for (int i = 0; i < cfg::arCache.getCount(); i++) {
- TExtraCache *p = cfg::arCache[i];
+ for (auto &p : cfg::arCache)
p->dwLastMsgTime = INTSORT_GetLastMsgTime(p->hContact);
- }
cfg::dat.sortOrder[0] = bSaved;