summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_search.cpp
diff options
context:
space:
mode:
authorSergey Bolhovskoy <elzorfox@ya.ru>2015-08-27 09:11:19 +0000
committerSergey Bolhovskoy <elzorfox@ya.ru>2015-08-27 09:11:19 +0000
commit427359cbf083f5c5f709d68fd30bd08392ae57ca (patch)
treef4b2b936268794ec2681f08ae09c0f84244c019c /protocols/VKontakte/src/vk_search.cpp
parent4d8a113f8a325b8d2ff6a008d3a8a5b8e70e2e81 (diff)
VKontakte:
fix unneeded ‘mark as read’ requests fix nick in forwarded messages code cleaning version bump git-svn-id: http://svn.miranda-ng.org/main/trunk@15040 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_search.cpp')
-rw-r--r--protocols/VKontakte/src/vk_search.cpp6
1 files changed, 2 insertions, 4 deletions
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());