diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-06-07 18:54:38 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-06-07 18:54:38 +0000 |
commit | 5d6989883de96e8f0f369dfb8af549963638ac61 (patch) | |
tree | 8fe86f09740268821624c26a6b969c1e2de946c0 /protocols/SkypeWeb/src/skype_search.cpp | |
parent | e5cb033463036b182fb6e5e3eed50a14987f5300 (diff) |
SkypeWeb: Search -> UTF-8. Code optimization.
git-svn-id: http://svn.miranda-ng.org/main/trunk@14055 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_search.cpp')
-rw-r--r-- | protocols/SkypeWeb/src/skype_search.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/protocols/SkypeWeb/src/skype_search.cpp b/protocols/SkypeWeb/src/skype_search.cpp index 16ea1fd67e..3284d4f533 100644 --- a/protocols/SkypeWeb/src/skype_search.cpp +++ b/protocols/SkypeWeb/src/skype_search.cpp @@ -61,13 +61,13 @@ void CSkypeProto::OnSearch(const NETLIBHTTPREQUEST *response) const JSONNode &ContactCards = item["ContactCards"];
const JSONNode &Skype = ContactCards["Skype"];
- CMString tszDisplayName(Skype["DisplayName"].as_mstring());
- CMString tszNick(Skype["SkypeName"].as_mstring());
+ CMStringA displayName(Skype["DisplayName"].as_string().c_str());
+ CMStringA nick(Skype["SkypeName"].as_string().c_str());
PROTOSEARCHRESULT psr = { sizeof(psr) };
- psr.flags = PSR_TCHAR;
- psr.id.t = tszDisplayName.GetBuffer();
- psr.nick.t = tszNick.GetBuffer();
+ psr.flags = PSR_UTF8;
+ psr.id.a = displayName.GetBuffer();
+ psr.nick.a = nick.GetBuffer();
ProtoBroadcastAck(0, ACKTYPE_SEARCH, ACKRESULT_DATA, (HANDLE)1, (LPARAM)&psr);
}
|