diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2015-05-29 06:39:22 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2015-05-29 06:39:22 +0000 |
commit | a5a3fe5b2700d075133da7c17c1e500605dba125 (patch) | |
tree | 92e0fdf2c56e685ed78a805c6ea270daebd564cc /protocols/VKontakte/src/vk_search.cpp | |
parent | 7021acd12bc0ae847b7e3f00a63ef2a5f8e89843 (diff) |
VKontakte: deGetBufferize
git-svn-id: http://svn.miranda-ng.org/main/trunk@13889 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_search.cpp')
-rw-r--r-- | protocols/VKontakte/src/vk_search.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/protocols/VKontakte/src/vk_search.cpp b/protocols/VKontakte/src/vk_search.cpp index a6e0cbdbba..2ba9be838b 100644 --- a/protocols/VKontakte/src/vk_search.cpp +++ b/protocols/VKontakte/src/vk_search.cpp @@ -129,10 +129,10 @@ void CVkProto::OnSearch(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq) CMString Nick(jnRecord["nickname"].as_mstring());
CMString Domain(jnRecord["domain"].as_mstring());
- psr.id = mir_tstrdup(Id.GetBuffer());
- psr.firstName = mir_tstrdup(FirstName.GetBuffer());
- psr.lastName = mir_tstrdup(LastName.GetBuffer());
- psr.nick = Nick.IsEmpty() ? mir_tstrdup(Domain.GetBuffer()) : mir_tstrdup(Nick.GetBuffer());
+ psr.id = mir_tstrdup(Id);
+ psr.firstName = mir_tstrdup(FirstName);
+ psr.lastName = mir_tstrdup(LastName);
+ psr.nick = Nick.IsEmpty() ? mir_tstrdup(Domain) : mir_tstrdup(Nick);
bool filter = true;
if (pParam) {
@@ -194,11 +194,11 @@ void CVkProto::OnSearchByMail(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq) CMString Email(jnRecord["contact"].as_mstring());
- psr.id = mir_tstrdup(Id.GetBuffer());
- psr.firstName = mir_tstrdup(FirstName.GetBuffer());
- psr.lastName = mir_tstrdup(LastName.GetBuffer());
- psr.nick = Nick.IsEmpty() ? mir_tstrdup(Email.GetBuffer()) : mir_tstrdup(Nick.GetBuffer());
- psr.email = mir_tstrdup(Email.GetBuffer());
+ psr.id = mir_tstrdup(Id);
+ psr.firstName = mir_tstrdup(FirstName);
+ psr.lastName = mir_tstrdup(LastName);
+ psr.nick = Nick.IsEmpty() ? mir_tstrdup(Email) : mir_tstrdup(Nick);
+ psr.email = mir_tstrdup(Email);
ProtoBroadcastAck(0, ACKTYPE_SEARCH, ACKRESULT_DATA, (HANDLE)1, (LPARAM)&psr);
}
|