diff options
Diffstat (limited to 'protocols/VKontakte/src/vk_pollserver.cpp')
-rw-r--r-- | protocols/VKontakte/src/vk_pollserver.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/vk_pollserver.cpp b/protocols/VKontakte/src/vk_pollserver.cpp index 77fceab9a3..49c9b017eb 100644 --- a/protocols/VKontakte/src/vk_pollserver.cpp +++ b/protocols/VKontakte/src/vk_pollserver.cpp @@ -81,8 +81,8 @@ void CVkProto::PollUpdates(const JSONNode &jnUpdates) bool bNonEdited = true;
MCONTACT hContact;
- for (auto it = jnUpdates.begin(); it != jnUpdates.end(); ++it) {
- const JSONNode &jnChild = (*it).as_array();
+ for (auto &it : jnUpdates) {
+ const JSONNode &jnChild = it.as_array();
switch (jnChild[json_index_t(0)].as_int()) {
case VKPOLL_MSG_DELFLAGS:
if (jnChild.size() < 4)
|