diff options
Diffstat (limited to 'protocols/VKontakte/src/vk_feed.cpp')
-rw-r--r-- | protocols/VKontakte/src/vk_feed.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/protocols/VKontakte/src/vk_feed.cpp b/protocols/VKontakte/src/vk_feed.cpp index 67502aee15..86884a79ce 100644 --- a/protocols/VKontakte/src/vk_feed.cpp +++ b/protocols/VKontakte/src/vk_feed.cpp @@ -679,9 +679,9 @@ void CVkProto::OnReceiveUnreadNews(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *p }
bool bNewsAdded = false;
- for (int i = 0; i < vkNews.getCount(); i++)
- if (!(m_vkOptions.bNewsSourceNoReposts && vkNews[i].bIsRepost)) {
- AddFeedEvent(vkNews[i]);
+ for (auto &it : vkNews)
+ if (!(m_vkOptions.bNewsSourceNoReposts && it->bIsRepost)) {
+ AddFeedEvent(*it);
bNewsAdded = true;
}
@@ -803,9 +803,9 @@ void CVkProto::OnReceiveUnreadNotifications(NETLIBHTTPREQUEST *reply, AsyncHttpR bool bNotificationCommentAdded = false;
bool bNotificationComment = false;
bool bNotificationAdded = false;
- for (int i = 0; i < vkNotification.getCount(); i++)
- if (FilterNotification(&vkNotification[i], bNotificationComment)) {
- AddFeedEvent(vkNotification[i]);
+ for (auto &it : vkNotification)
+ if (FilterNotification(it, bNotificationComment)) {
+ AddFeedEvent(*it);
bNotificationAdded = true;
bNotificationCommentAdded = bNotificationComment || bNotificationCommentAdded;
}
|