summaryrefslogtreecommitdiff
path: root/protocols/Discord/src/groupchat.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-02-21 18:35:58 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-02-21 18:40:14 +0300
commitb8a1ac529c6615d5ba6aa3d7ea9e8b4fe9ad4b71 (patch)
tree05f3df6a2d296709f46f537eaeefea3c58b24f6c /protocols/Discord/src/groupchat.cpp
parent058282527241fe458a1aae28d565a727dcc1a811 (diff)
Discord: C++'11 iterators
Diffstat (limited to 'protocols/Discord/src/groupchat.cpp')
-rw-r--r--protocols/Discord/src/groupchat.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Discord/src/groupchat.cpp b/protocols/Discord/src/groupchat.cpp
index b2ba5f8248..1492a58800 100644
--- a/protocols/Discord/src/groupchat.cpp
+++ b/protocols/Discord/src/groupchat.cpp
@@ -29,8 +29,8 @@ void CDiscordProto::BuildStatusList(const CDiscordGuild *pGuild, const CMStringW
{
Chat_AddGroup(m_szModuleName, wszChannelId, L"@owner");
- for (int i = 0; i < pGuild->arRoles.getCount(); i++)
- Chat_AddGroup(m_szModuleName, wszChannelId, pGuild->arRoles[i].wszName);
+ for (auto &it : pGuild->arRoles)
+ Chat_AddGroup(m_szModuleName, wszChannelId, it->wszName);
}
/////////////////////////////////////////////////////////////////////////////////////////