From 91996a2f0ab5228acdfac1d0c662d68339a0ed79 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Sun, 20 Mar 2016 16:57:19 +0000 Subject: VK: code cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@16518 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/VKontakte/src/vk_feed.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'protocols/VKontakte/src/vk_feed.cpp') 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) -- cgit v1.2.3