diff options
author | George Hazan <ghazan@miranda.im> | 2018-02-21 18:36:45 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-02-21 18:40:14 +0300 |
commit | e8f69d4e566a3e73ff656beebcae9916e9148589 (patch) | |
tree | 1609c337a76dd79d198fecfdfa5d3acfbd2c45cf /protocols/MSN/src/msn_commands.cpp | |
parent | 6e96535fdbb886dcad1a3396659b368283922e64 (diff) |
MSN: C++'11 iterators
Diffstat (limited to 'protocols/MSN/src/msn_commands.cpp')
-rw-r--r-- | protocols/MSN/src/msn_commands.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/protocols/MSN/src/msn_commands.cpp b/protocols/MSN/src/msn_commands.cpp index 97bd3e71a9..d9c64ed438 100644 --- a/protocols/MSN/src/msn_commands.cpp +++ b/protocols/MSN/src/msn_commands.cpp @@ -946,8 +946,7 @@ LBL_InvalidCommand: /* We have to traverse the list in reverse order as newest events are on top (which is the opposite direction of Groupchat) */
LIST<ezxml> msgs(10,PtrKeySortT);
for (ezxml_t msg = ezxml_get(xmli, "messages", 0, "message", -1); msg != nullptr; msg = ezxml_next(msg)) msgs.insert(msg, 0);
- for (int i=0; i<msgs.getCount(); i++) {
- ezxml_t msg = msgs[i];
+ for (auto &msg : msgs) {
ezxml_t arrtime = ezxml_child(msg, "originalarrivaltime"), from = ezxml_child(msg, "from"),
msgtype = ezxml_child(msg, "messagetype"), content = ezxml_child(msg, "content");
time_t ts;
|