summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/requests/chatrooms.h
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/SkypeWeb/src/requests/chatrooms.h')
-rw-r--r--protocols/SkypeWeb/src/requests/chatrooms.h6
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;