summaryrefslogtreecommitdiff
path: root/protocols/Discord/src/server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Discord/src/server.cpp')
-rw-r--r--protocols/Discord/src/server.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/protocols/Discord/src/server.cpp b/protocols/Discord/src/server.cpp
index 4dd70b00ab..5a3a41f99b 100644
--- a/protocols/Discord/src/server.cpp
+++ b/protocols/Discord/src/server.cpp
@@ -81,9 +81,8 @@ void CDiscordProto::OnReceiveHistory(NETLIBHTTPREQUEST *pReply, AsyncHttpRequest
arNodes.insert(&p);
}
- for (int i = 0; i < arNodes.getCount(); i++) {
- JSONNode &p = *arNodes[i];
-
+ for (auto &it : arNodes) {
+ auto &p = *it;
CMStringW wszText = PrepareMessageText(p);
CMStringW wszUserId = p["author"]["id"].as_mstring();
SnowFlake msgid = ::getId(p["id"]);