summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/misc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/VKontakte/src/misc.cpp')
-rw-r--r--protocols/VKontakte/src/misc.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp
index 1da3b4cf92..41f2c8c588 100644
--- a/protocols/VKontakte/src/misc.cpp
+++ b/protocols/VKontakte/src/misc.cpp
@@ -314,7 +314,7 @@ JSONNode& CVkProto::CheckJsonResponse(AsyncHttpRequest *pReq, NETLIBHTTPREQUEST
return root["response"];
}
-bool CVkProto::CheckJsonResult(AsyncHttpRequest *pReq, JSONNode &jnNode)
+bool CVkProto::CheckJsonResult(AsyncHttpRequest *pReq, const JSONNode &jnNode)
{
debugLogA("CVkProto::CheckJsonResult");
if (!jnNode)
@@ -952,7 +952,7 @@ CMString& CVkProto::ClearFormatNick(CMString& tszText)
/////////////////////////////////////////////////////////////////////////////////////////
-CMString CVkProto::GetAttachmentDescr(const JSONNode jnAttachments, BBCSupport iBBC)
+CMString CVkProto::GetAttachmentDescr(const JSONNode &jnAttachments, BBCSupport iBBC)
{
debugLogA("CVkProto::GetAttachmentDescr");
CMString res;
@@ -965,7 +965,7 @@ CMString CVkProto::GetAttachmentDescr(const JSONNode jnAttachments, BBCSupport i
res.AppendChar('\n');
for (auto it = jnAttachments.begin(); it != jnAttachments.end(); ++it) {
- const JSONNode jnAttach = (*it);
+ const JSONNode &jnAttach = (*it);
res.AppendChar('\t');
CMString tszType(jnAttach["type"].as_mstring());