From b244d1adc6c9a1b6991262b0ee2ee387e75a695b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 14 Aug 2018 20:13:11 +0300 Subject: compilation fix --- plugins/Msg_Export/src/utils.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/Msg_Export') diff --git a/plugins/Msg_Export/src/utils.cpp b/plugins/Msg_Export/src/utils.cpp index 4c04d302df..87e4f7b980 100755 --- a/plugins/Msg_Export/src/utils.cpp +++ b/plugins/Msg_Export/src/utils.cpp @@ -720,17 +720,17 @@ static bool ExportDBEventInfo(MCONTACT hContact, HANDLE hFile, wstring sFilePath if (g_bUseJson) { JSONNode pRoot, pInfo, pHist(JSON_ARRAY); pInfo.set_name("info"); - pInfo.push_back(JSONNode("user", T2Utf(sRemoteUser.c_str()))); + pInfo.push_back(JSONNode("user", T2Utf(sRemoteUser.c_str()).get())); pInfo.push_back(JSONNode("proto", szProto)); ptrW id(Contact_GetInfo(CNF_UNIQUEID, hContact, szProto)); if (id != NULL) - pInfo.push_back(JSONNode("uin", T2Utf(id))); + pInfo.push_back(JSONNode("uin", T2Utf(id).get())); szTemp[0] = (wchar_t)db_get_b(hContact, szProto, "Gender", 0); if (szTemp[0]) { szTemp[1] = 0; - pInfo.push_back(JSONNode("gender", T2Utf(szTemp))); + pInfo.push_back(JSONNode("gender", T2Utf(szTemp).get())); } int age = db_get_w(hContact, szProto, "Age", 0); @@ -740,7 +740,7 @@ static bool ExportDBEventInfo(MCONTACT hContact, HANDLE hFile, wstring sFilePath for (auto &it : pSettings) { wstring szValue = _DBGetStringW(hContact, szProto, it, L""); if (!szValue.empty()) - pInfo.push_back(JSONNode(it, T2Utf(szValue.c_str()))); + pInfo.push_back(JSONNode(it, T2Utf(szValue.c_str()).get())); } pRoot.push_back(pInfo); @@ -818,7 +818,7 @@ static bool ExportDBEventInfo(MCONTACT hContact, HANDLE hFile, wstring sFilePath ptrW msg(DbEvent_GetTextW(&dbei, CP_ACP)); if (msg) - pRoot.push_back(JSONNode("body", T2Utf(msg))); + pRoot.push_back(JSONNode("body", T2Utf(msg).get())); std::string output = pRoot.write_formatted(); ReplaceAll(output, "\t", "\t\t"); -- cgit v1.2.3