diff options
author | George Hazan <ghazan@miranda.im> | 2018-02-21 18:37:12 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-02-21 18:40:14 +0300 |
commit | b6de8047c1113030b64c81e58c2ba37c062639ae (patch) | |
tree | 046dbb4cf9e8cd2f904fef38ca86e00304605ac8 /protocols/SkypeWeb/src/requests/chatrooms.h | |
parent | 40dc4c27f7d2ea66ff570281a992415a0e6578a2 (diff) |
Skype: C++'11 iterators
Diffstat (limited to 'protocols/SkypeWeb/src/requests/chatrooms.h')
-rw-r--r-- | protocols/SkypeWeb/src/requests/chatrooms.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/SkypeWeb/src/requests/chatrooms.h b/protocols/SkypeWeb/src/requests/chatrooms.h index feb6461e60..607dd462d1 100644 --- a/protocols/SkypeWeb/src/requests/chatrooms.h +++ b/protocols/SkypeWeb/src/requests/chatrooms.h @@ -97,12 +97,12 @@ public: JSONNode node;
JSONNode members(JSON_ARRAY); members.set_name("members");
- for (int i = 0; i < skypenames.getCount(); i++)
+ for (auto &it : skypenames)
{
JSONNode member;
member
- << JSONNode("id", CMStringA(::FORMAT, "8:%s", skypenames[i]).GetBuffer())
- << JSONNode("role", !mir_strcmpi(skypenames[i], li.szSkypename) ? "Admin" : "User");
+ << JSONNode("id", CMStringA(::FORMAT, "8:%s", it).GetBuffer())
+ << JSONNode("role", !mir_strcmpi(it, li.szSkypename) ? "Admin" : "User");
members << member;
}
node << members;
|