From 427359cbf083f5c5f709d68fd30bd08392ae57ca Mon Sep 17 00:00:00 2001 From: Sergey Bolhovskoy Date: Thu, 27 Aug 2015 09:11:19 +0000 Subject: =?UTF-8?q?VKontakte:=20fix=20unneeded=20=E2=80=98mark=20as=20read?= =?UTF-8?q?=E2=80=99=20requests=20fix=20nick=20in=20forwarded=20messages?= =?UTF-8?q?=20code=20cleaning=20version=20bump?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://svn.miranda-ng.org/main/trunk@15040 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/VKontakte/src/vk_search.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'protocols/VKontakte/src/vk_search.cpp') diff --git a/protocols/VKontakte/src/vk_search.cpp b/protocols/VKontakte/src/vk_search.cpp index a2fab4a335..cf8616d9d5 100644 --- a/protocols/VKontakte/src/vk_search.cpp +++ b/protocols/VKontakte/src/vk_search.cpp @@ -122,8 +122,7 @@ void CVkProto::OnSearch(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq) PROTOSEARCHRESULT psr = { sizeof(psr) }; psr.flags = PSR_TCHAR; - CMString Id; - Id.AppendFormat(_T("%d"), jnRecord["id"].as_int()); + CMString Id(FORMAT, _T("%d"), jnRecord["id"].as_int()); CMString FirstName(jnRecord["first_name"].as_mstring()); CMString LastName(jnRecord["last_name"].as_mstring()); CMString Nick(jnRecord["nickname"].as_mstring()); @@ -186,8 +185,7 @@ void CVkProto::OnSearchByMail(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq) PROTOSEARCHRESULT psr = { sizeof(psr) }; psr.flags = PSR_TCHAR; - CMString Id; - Id.AppendFormat(_T("%d"), jnRecord["id"].as_int()); + CMString Id(FORMAT, _T("%d"), jnRecord["id"].as_int()); CMString FirstName(jnRecord["first_name"].as_mstring()); CMString LastName(jnRecord["last_name"].as_mstring()); CMString Nick(jnRecord["nickname"].as_mstring()); -- cgit v1.2.3