diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2016-07-29 06:41:56 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2016-07-29 06:41:56 +0000 |
commit | 17ee088fc01ea6807154f0d43d10fbf26777baa6 (patch) | |
tree | 5b0b65d9f5c33eba968c72a90d8b8f6b62de4a32 /protocols/VKontakte/src/vk_search.cpp | |
parent | 04eb614c8b0b3a3a356c0d8c4104bd12c17ff622 (diff) |
VKontakte:
rename string variables (p)tsz* -> (p)wsz*
rename struct TCHAR_ PARAM -> WCHAR_ PARAM
change mir_sntprintf -> mir_snwprintf, LPCTSTR -> LPCWSTR, setTString -> setWString, db_set_ts(a)-> db_set_ws(a) and etc.
git-svn-id: http://svn.miranda-ng.org/main/trunk@17141 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_search.cpp')
-rw-r--r-- | protocols/VKontakte/src/vk_search.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/protocols/VKontakte/src/vk_search.cpp b/protocols/VKontakte/src/vk_search.cpp index f3004e3855..b56376b265 100644 --- a/protocols/VKontakte/src/vk_search.cpp +++ b/protocols/VKontakte/src/vk_search.cpp @@ -47,7 +47,7 @@ void CVkProto::SearchBasicThread(void *id) if (!IsOnline())
return;
AsyncHttpRequest *pReq = new AsyncHttpRequest(this, REQUEST_GET, "/method/users.get.json", true, &CVkProto::OnSearch)
- << TCHAR_PARAM("user_ids", (wchar_t *)id)
+ << WCHAR_PARAM("user_ids", (wchar_t *)id)
<< CHAR_PARAM("fields", "nickname, domain");
pReq->pUserInfo = NULL;
Push(pReq);
@@ -59,7 +59,7 @@ void CVkProto::SearchByMailThread(void *email) if (!IsOnline())
return;
AsyncHttpRequest *pReq = new AsyncHttpRequest(this, REQUEST_GET, "/method/account.lookupContacts.json", true, &CVkProto::OnSearchByMail)
- << TCHAR_PARAM("contacts", (wchar_t *)email)
+ << WCHAR_PARAM("contacts", (wchar_t *)email)
<< CHAR_PARAM("service", "email");
Push(pReq);
}
@@ -75,7 +75,7 @@ void __cdecl CVkProto::SearchThread(void *p) return;
AsyncHttpRequest *pReq = new AsyncHttpRequest(this, REQUEST_GET, "/method/users.search.json", true, &CVkProto::OnSearch)
- << TCHAR_PARAM("q", (wchar_t *)arg)
+ << WCHAR_PARAM("q", (wchar_t *)arg)
<< CHAR_PARAM("fields", "nickname, domain")
<< INT_PARAM("count", 200);
pReq->pUserInfo = p;
@@ -134,11 +134,11 @@ void CVkProto::OnSearch(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq) bool filter = true;
if (pParam) {
if (psr.firstName.w && pParam->pszFirstName)
- filter = tlstrstr(psr.firstName.w, pParam->pszFirstName) && filter;
+ filter = wlstrstr(psr.firstName.w, pParam->pszFirstName) && filter;
if (psr.lastName.w && pParam->pszLastName)
- filter = tlstrstr(psr.lastName.w, pParam->pszLastName) && filter;
+ filter = wlstrstr(psr.lastName.w, pParam->pszLastName) && filter;
if (psr.nick.w && pParam->pszNick)
- filter = tlstrstr(psr.nick.w, pParam->pszNick) && filter;
+ filter = wlstrstr(psr.nick.w, pParam->pszNick) && filter;
}
if (filter)
|