diff options
author | George Hazan <ghazan@miranda.im> | 2021-03-13 12:50:08 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-03-13 12:50:08 +0300 |
commit | b10f9d1556172e721e5a0c345f67f4827408a6db (patch) | |
tree | d9a7f73b0c0a6b75b88e9a18237449e0b402b061 /protocols/VKontakte/src | |
parent | c29f438443c64f796472d234b30881cff8f4ea57 (diff) |
warning fixes
Diffstat (limited to 'protocols/VKontakte/src')
-rw-r--r-- | protocols/VKontakte/src/misc.cpp | 2 | ||||
-rw-r--r-- | protocols/VKontakte/src/vk_chats.cpp | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp index d5d27cd0db..9bd4ed0955 100644 --- a/protocols/VKontakte/src/misc.cpp +++ b/protocols/VKontakte/src/misc.cpp @@ -1446,7 +1446,7 @@ CMStringW CVkProto::GetAttachmentDescr(const JSONNode &jnAttachments, BBCSupport const JSONNode& jnUnknown = jnAttach[jnAttach["type"].as_string().c_str()];
CMStringW wszText(jnUnknown["text"].as_mstring());
if (!wszText.IsEmpty())
- res.AppendFormat(L"\n%s: %s", TranslateT("Text"), wszText);
+ res.AppendFormat(L"\n%s: %s", TranslateT("Text"), wszText.c_str());
}
res.AppendChar('\n');
diff --git a/protocols/VKontakte/src/vk_chats.cpp b/protocols/VKontakte/src/vk_chats.cpp index e344a79384..0cd0724325 100644 --- a/protocols/VKontakte/src/vk_chats.cpp +++ b/protocols/VKontakte/src/vk_chats.cpp @@ -237,7 +237,6 @@ void CVkProto::OnReceiveChatInfo(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pRe const JSONNode &jnMsgs = jnResponse["msgs"];
const JSONNode &jnFUsers = jnResponse["fwd_users"];
- const JSONNode &jnGUsers = jnResponse["groups"];
if (jnMsgs) {
const JSONNode &jnItems = jnMsgs["items"];
if (jnItems) {
|