summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_struct.cpp
diff options
context:
space:
mode:
authorSergey Bolhovskoy <elzorfox@ya.ru>2016-07-29 06:41:56 +0000
committerSergey Bolhovskoy <elzorfox@ya.ru>2016-07-29 06:41:56 +0000
commit17ee088fc01ea6807154f0d43d10fbf26777baa6 (patch)
tree5b0b65d9f5c33eba968c72a90d8b8f6b62de4a32 /protocols/VKontakte/src/vk_struct.cpp
parent04eb614c8b0b3a3a356c0d8c4104bd12c17ff622 (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_struct.cpp')
-rw-r--r--protocols/VKontakte/src/vk_struct.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/protocols/VKontakte/src/vk_struct.cpp b/protocols/VKontakte/src/vk_struct.cpp
index 12bc8804d0..8373f8be89 100644
--- a/protocols/VKontakte/src/vk_struct.cpp
+++ b/protocols/VKontakte/src/vk_struct.cpp
@@ -135,11 +135,11 @@ CVkFileUploadParam::VKFileType CVkFileUploadParam::GetType()
CMStringA fn(FORMAT, "%s%s", pszFNAME, pszEXT);
fname = mir_strdup(fn);
- if (tlstrstr(img, EXT)) {
+ if (wlstrstr(img, EXT)) {
filetype = CVkFileUploadParam::typeImg;
atr = mir_strdup("photo");
}
- else if (tlstrstr(audio, EXT)) {
+ else if (wlstrstr(audio, EXT)) {
filetype = CVkFileUploadParam::typeAudio;
atr = mir_strdup("file");
}
@@ -153,9 +153,9 @@ CVkFileUploadParam::VKFileType CVkFileUploadParam::GetType()
/////////////////////////////////////////////////////////////////////////////////////////
-CVkChatUser* CVkChatInfo::GetUserById(LPCTSTR ptszId)
+CVkChatUser* CVkChatInfo::GetUserById(LPCWSTR pwszId)
{
- int user_id = _wtoi(ptszId);
+ int user_id = _wtoi(pwszId);
return m_users.find((CVkChatUser*)&user_id);
}
@@ -233,9 +233,9 @@ CVKOptions::CVKOptions(PROTO_INTERFACE *proto) :
iInvisibleInterval(proto, "InvisibleInterval", 10),
iMaxFriendsCount(proto, "MaxFriendsCount", 1000),
- ptszDefaultGroup(proto, "ProtoGroup", L"VKontakte"),
- ptszReturnChatMessage(proto, "ReturnChatMessage", TranslateT("I\'m back")),
- ptszVKLang(proto, "VKLang", NULL)
+ pwszDefaultGroup(proto, "ProtoGroup", L"VKontakte"),
+ pwszReturnChatMessage(proto, "ReturnChatMessage", TranslateT("I\'m back")),
+ pwszVKLang(proto, "VKLang", NULL)
{
}