From d05dd78157058eea348f0d7666c7c6b0570ef25b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 14 Aug 2017 20:52:02 +0300 Subject: compilation fix --- protocols/JabberG/src/jabber_caps.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'protocols/JabberG') diff --git a/protocols/JabberG/src/jabber_caps.cpp b/protocols/JabberG/src/jabber_caps.cpp index 44fa596a36..6515418513 100755 --- a/protocols/JabberG/src/jabber_caps.cpp +++ b/protocols/JabberG/src/jabber_caps.cpp @@ -142,16 +142,16 @@ void CJabberProto::OnIqResultCapsDiscoInfo(HXML, CJabberIqInfo *pInfo) if (!mir_wstrcmp(szFormTypeValue, L"urn:xmpp:dataforms:softwareinfo")) { JSONNode root; if (pCaps->m_szOs = mir_wstrdup(XPath(xform, L"field[@var='os']/value"))) - root.push_back(JSONNode("o", _T2A(pCaps->m_szOs))); + root.push_back(JSONNode("o", _T2A(pCaps->m_szOs).get())); if (pCaps->m_szOsVer = mir_wstrdup(XPath(xform, L"field[@var='os_version']/value"))) - root.push_back(JSONNode("ov", _T2A(pCaps->m_szOsVer))); + root.push_back(JSONNode("ov", _T2A(pCaps->m_szOsVer).get())); if (pCaps->m_szSoft = mir_wstrdup(XPath(xform, L"field[@var='software']/value"))) - root.push_back(JSONNode("s", _T2A(pCaps->m_szSoft))); + root.push_back(JSONNode("s", _T2A(pCaps->m_szSoft).get())); if (pCaps->m_szSoftVer = mir_wstrdup(XPath(xform, L"field[@var='software_version']/value"))) - root.push_back(JSONNode("sv", _T2A(pCaps->m_szSoftVer))); + root.push_back(JSONNode("sv", _T2A(pCaps->m_szSoftVer).get())); if (pCaps->m_szSoftMir = mir_wstrdup(XPath(xform, L"field[@var='x-miranda-core-version']/value"))) - root.push_back(JSONNode("sm", _T2A(pCaps->m_szSoftMir))); - root.push_back(JSONNode("ñ", CMStringA(FORMAT, "%lld", jcbCaps))); + root.push_back(JSONNode("sm", _T2A(pCaps->m_szSoftMir).get())); + root.push_back(JSONNode("c", CMStringA(FORMAT, "%lld", jcbCaps))); CMStringA szName(FORMAT, "%S#%S", pCaps->GetNode(), pCaps->GetHash()); json_string szValue = root.write(); -- cgit v1.2.3