summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_chats.cpp
diff options
context:
space:
mode:
authorElzorFox <elzorfox@ya.ru>2017-03-19 16:50:38 +0500
committerElzorFox <elzorfox@ya.ru>2017-03-19 16:50:38 +0500
commit100badfbc7d633078f25fb4b9ecd7350140e1dfa (patch)
treed3f21d045f6a5b1b66390f7dc7c143d1f160afd6 /protocols/VKontakte/src/vk_chats.cpp
parentfbe3739da349afbb2e42bc6c1ce5a20b657289ac (diff)
VKontakte: fix warning C4840 in MSVS 2017
Diffstat (limited to 'protocols/VKontakte/src/vk_chats.cpp')
-rw-r--r--protocols/VKontakte/src/vk_chats.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/VKontakte/src/vk_chats.cpp b/protocols/VKontakte/src/vk_chats.cpp
index 4cac5fb957..5806f618ce 100644
--- a/protocols/VKontakte/src/vk_chats.cpp
+++ b/protocols/VKontakte/src/vk_chats.cpp
@@ -308,7 +308,7 @@ void CVkProto::AppendChatMessage(int id, const JSONNode &jnMsg, const JSONNode &
if (wszUid == wszActionMid) {
if (cc->m_bHistoryRead)
return;
- wszBody.AppendFormat(L" (https://vk.com/id%s) %s", wszUid, TranslateT("left chat"));
+ wszBody.AppendFormat(L" (https://vk.com/id%s) %s", wszUid.c_str(), TranslateT("left chat"));
}
else {
int a_uid = 0;
@@ -332,7 +332,7 @@ void CVkProto::AppendChatMessage(int id, const JSONNode &jnMsg, const JSONNode &
else {
CMStringW wszUid(FORMAT, L"%d", uid);
if (wszUid == wszActionMid)
- wszBody.AppendFormat(L" (https://vk.com/id%s) %s", wszUid, TranslateT("returned to chat"));
+ wszBody.AppendFormat(L" (https://vk.com/id%s) %s", wszUid.c_str(), TranslateT("returned to chat"));
else {
int a_uid = 0;
int iReadCount = swscanf(wszActionMid, L"%d", &a_uid);
@@ -360,7 +360,7 @@ void CVkProto::AppendChatMessage(int id, const JSONNode &jnMsg, const JSONNode &
else if (wszAction == L"chat_photo_remove")
wszBody = TranslateT("deleted chat cover");
else
- wszBody.AppendFormat(L": %s (%s)", TranslateT("chat action not supported"), wszAction);
+ wszBody.AppendFormat(L": %s (%s)", TranslateT("chat action not supported"), wszAction.c_str());
}
wszBody.Replace(L"%", L"%%");