diff options
author | ElzorFox <elzorfox@ya.ru> | 2023-11-27 16:07:29 +0500 |
---|---|---|
committer | ElzorFox <elzorfox@ya.ru> | 2023-11-27 16:07:29 +0500 |
commit | eaee27dace9547aaa03bb25bcb2605b1c2f22c4d (patch) | |
tree | 8154e17bf6b3fcca78df3b862e8d847a04d1c195 /protocols/VKontakte | |
parent | 769cddb8204654c6fe2a00cfe182c464cbfb473a (diff) |
Vkontakte: code cleaning
Diffstat (limited to 'protocols/VKontakte')
-rw-r--r-- | protocols/VKontakte/src/vk_history.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/vk_history.cpp b/protocols/VKontakte/src/vk_history.cpp index 4604a99231..4e967f319e 100644 --- a/protocols/VKontakte/src/vk_history.cpp +++ b/protocols/VKontakte/src/vk_history.cpp @@ -225,7 +225,7 @@ void CVkProto::OnReceiveHistoryMessages(NETLIBHTTPREQUEST *reply, AsyncHttpReque if (iLastMsgId < iMessageId)
iLastMsgId = iMessageId;
- char szMid[40], szReplyId[40] = "";;
+ char szMid[40], szReplyId[40] = "";
_ltoa(iMessageId, szMid, 10);
CMStringW wszBody(jnMsg["text"].as_mstring());
@@ -251,7 +251,8 @@ void CVkProto::OnReceiveHistoryMessages(NETLIBHTTPREQUEST *reply, AsyncHttpReque if (!wszBody.IsEmpty())
wszReplyMessages = L"\n" + wszReplyMessages;
wszBody += wszReplyMessages;
- } else if (jnReplyMessages["id"])
+ }
+ else if (jnReplyMessages["id"])
_ltoa(jnReplyMessages["id"].as_int(), szReplyId, 10);
const JSONNode &jnAttachments = jnMsg["attachments"];
|