diff options
author | ElzorFox <elzorfox@ya.ru> | 2018-01-31 11:03:05 +0500 |
---|---|---|
committer | ElzorFox <elzorfox@ya.ru> | 2018-01-31 11:03:05 +0500 |
commit | b05eab27cf16f2316694d43211fb31827ceea727 (patch) | |
tree | bfeb5d39b0200d3ebb50198e9b201beb32bf5b9d /protocols/VKontakte/src/vk_search.cpp | |
parent | ac25aecfd65f1e68677ca93e0f26138fd9dc6f3e (diff) |
VKontakte: ะก++ 11 scope for
Diffstat (limited to 'protocols/VKontakte/src/vk_search.cpp')
-rw-r--r-- | protocols/VKontakte/src/vk_search.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/protocols/VKontakte/src/vk_search.cpp b/protocols/VKontakte/src/vk_search.cpp index 085e382e1d..3796fbb530 100644 --- a/protocols/VKontakte/src/vk_search.cpp +++ b/protocols/VKontakte/src/vk_search.cpp @@ -112,8 +112,7 @@ void CVkProto::OnSearch(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq) }
const JSONNode &jnItems = !jnResponse["items"] ? jnResponse : jnResponse["items"];
- for (auto it = jnItems.begin(); it != jnItems.end(); ++it) {
- const JSONNode &jnRecord = (*it);
+ for (auto &jnRecord : jnItems) {
if (!jnRecord)
break;
@@ -170,8 +169,7 @@ void CVkProto::OnSearchByMail(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq) return;
}
- for (auto it = jnItems.begin(); it != jnItems.end(); ++it) {
- const JSONNode &jnRecord = (*it);
+ for (auto &jnRecord : jnItems) {
if (!jnRecord)
break;
|