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_wallpost.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_wallpost.cpp')
-rw-r--r-- | protocols/VKontakte/src/vk_wallpost.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/protocols/VKontakte/src/vk_wallpost.cpp b/protocols/VKontakte/src/vk_wallpost.cpp index 5871dbcff3..3f91ebab3a 100644 --- a/protocols/VKontakte/src/vk_wallpost.cpp +++ b/protocols/VKontakte/src/vk_wallpost.cpp @@ -21,19 +21,19 @@ INT_PTR __cdecl CVkProto::SvcWallPost(WPARAM hContact, LPARAM) {
debugLogA("CVkProto::SvcWallPost");
- WALLPOST_FORM_PARAMS param(db_get_tsa(hContact, m_szModuleName, "Nick"));
+ WALLPOST_FORM_PARAMS param(db_get_wsa(hContact, m_szModuleName, "Nick"));
CVkWallPostForm dlg(this, ¶m);
if (!dlg.DoModal())
return 1;
- WallPost((MCONTACT)hContact, param.ptszMsg, param.ptszUrl, param.bFriendsOnly);
+ WallPost((MCONTACT)hContact, param.pwszMsg, param.pwszUrl, param.bFriendsOnly);
return 0;
}
-void CVkProto::WallPost(MCONTACT hContact, wchar_t *ptszMsg, wchar_t *ptszUrl, bool bFriendsOnly)
+void CVkProto::WallPost(MCONTACT hContact, wchar_t *pwszMsg, wchar_t *pwszUrl, bool bFriendsOnly)
{
debugLogA("CVkProto::WallPost");
- if (!IsOnline() || (IsEmpty(ptszMsg) && IsEmpty(ptszUrl)))
+ if (!IsOnline() || (IsEmpty(pwszMsg) && IsEmpty(pwszUrl)))
return;
LONG userID = hContact ? m_myUserId : getDword(hContact, "ID", -1);
@@ -44,11 +44,11 @@ void CVkProto::WallPost(MCONTACT hContact, wchar_t *ptszMsg, wchar_t *ptszUrl, b << INT_PARAM("owner_id", userID)
<< INT_PARAM("friends_only", bFriendsOnly ? 1 : 0);
- if (!IsEmpty(ptszMsg))
- pReq << TCHAR_PARAM("message", ptszMsg);
+ if (!IsEmpty(pwszMsg))
+ pReq << WCHAR_PARAM("message", pwszMsg);
- if (!IsEmpty(ptszUrl))
- pReq << TCHAR_PARAM("attachments", ptszUrl);
+ if (!IsEmpty(pwszUrl))
+ pReq << WCHAR_PARAM("attachments", pwszUrl);
Push(pReq);
}
\ No newline at end of file |