summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_feed.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2016-03-20 16:57:19 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2016-03-20 16:57:19 +0000
commit91996a2f0ab5228acdfac1d0c662d68339a0ed79 (patch)
treeb415191b2169e51f1c37688a8f01a90b54584c17 /protocols/VKontakte/src/vk_feed.cpp
parent3015b86003db0edc9b1da8707a302cddc36855e5 (diff)
VK: code cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@16518 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_feed.cpp')
-rw-r--r--protocols/VKontakte/src/vk_feed.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/protocols/VKontakte/src/vk_feed.cpp b/protocols/VKontakte/src/vk_feed.cpp
index e78cb3ca5e..629c26eca9 100644
--- a/protocols/VKontakte/src/vk_feed.cpp
+++ b/protocols/VKontakte/src/vk_feed.cpp
@@ -600,8 +600,7 @@ void CVkProto::RetrieveUnreadNews(time_t tLastNewsTime)
<< INT_PARAM("max_photos", m_iMaxLoadNewsPhoto)
<< INT_PARAM("start_time", tLastNewsTime + 1)
<< CHAR_PARAM("filters", szFilter)
- << CHAR_PARAM("source_ids", szSource)
- << VER_API);
+ << CHAR_PARAM("source_ids", szSource));
setDword("LastNewsReqTime", (DWORD)time(NULL));
}
@@ -691,8 +690,7 @@ void CVkProto::RetrieveUnreadNotifications(time_t tLastNotificationsTime)
m_bNotificationFilterInvites ? _T(",\"groupinvates\":API.groups.getInvites({\"extended\":1})};") : _T("};"));
Push(new AsyncHttpRequest(this, REQUEST_GET, "/method/execute.json", true, &CVkProto::OnReceiveUnreadNotifications)
- << TCHAR_PARAM("code", code)
- << VER_API);
+ << TCHAR_PARAM("code", code) );
setDword("LastNotificationsReqTime", (DWORD)time(NULL));
}
@@ -726,8 +724,7 @@ void CVkProto::NotificationMarkAsViewed()
if (!IsOnline())
return;
- Push(new AsyncHttpRequest(this, REQUEST_GET, "/method/notifications.markAsViewed.json", true, &CVkProto::OnReceiveSmth)
- << VER_API);
+ Push(new AsyncHttpRequest(this, REQUEST_GET, "/method/notifications.markAsViewed.json", true, &CVkProto::OnReceiveSmth));
}
void CVkProto::OnReceiveUnreadNotifications(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq)