diff options
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;
|