From 8ae3679aa1339ce9abee53adb69902bd6b7513dc Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 25 Jul 2016 10:31:04 +0000 Subject: hello, Unix. phase 1: removing _T() git-svn-id: http://svn.miranda-ng.org/main/trunk@17127 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/PasteIt/src/PasteToWeb2.cpp | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'plugins/PasteIt/src/PasteToWeb2.cpp') diff --git a/plugins/PasteIt/src/PasteToWeb2.cpp b/plugins/PasteIt/src/PasteToWeb2.cpp index 36e168a922..f9645ee447 100644 --- a/plugins/PasteIt/src/PasteToWeb2.cpp +++ b/plugins/PasteIt/src/PasteToWeb2.cpp @@ -54,15 +54,15 @@ void PasteToWeb2::SendToServer(std::wstring str, std::wstring fileName, std::wst { std::map headers; headers["Content-Type"] = "text/xml"; - std::wstring content = _T("\r\ncreate_paste"); + std::wstring content = L"\r\ncreate_paste"; if (fileName == L"") { content += format; - content += _T(""); + content += L""; } else { - content += _T(""); + content += L""; } for (std::wstring::iterator it = str.begin(); it != str.end(); ++it) { @@ -80,7 +80,7 @@ void PasteToWeb2::SendToServer(std::wstring str, std::wstring fileName, std::wst } } - content += _T(""); + content += L""; if (fileName != L"") { for (std::wstring::iterator it = fileName.begin(); it != fileName.end(); ++it) @@ -99,25 +99,25 @@ void PasteToWeb2::SendToServer(std::wstring str, std::wstring fileName, std::wst } } } - content += _T("1.5"); + content += L"1.5"; wchar_t* resCont = SendToWeb("http://wklej.to/api/", headers, content); error = TranslateT("Error during sending text to web page"); if (resCont != NULL) { - HXML hXml = xmlParseString(resCont, NULL, _T("methodResponse")); + HXML hXml = xmlParseString(resCont, NULL, L"methodResponse"); if (hXml != NULL) { - HXML node = xmlGetChildByPath(hXml, _T("params/param/value/array/data/value/int"), 0); - if (node != NULL && !mir_tstrcmp(xmlGetText(node), _T("1"))) + HXML node = xmlGetChildByPath(hXml, L"params/param/value/array/data/value/int", 0); + if (node != NULL && !mir_tstrcmp(xmlGetText(node), L"1")) { - node = xmlGetChildByPath(hXml, _T("params/param/value/array/data"), 0); + node = xmlGetChildByPath(hXml, L"params/param/value/array/data", 0); if (node != NULL) { - node = xmlGetNthChild(node, _T("value"), 1); + node = xmlGetNthChild(node, L"value", 1); if (node != NULL) { - node = xmlGetChildByPath(node, _T("string"), 0); + node = xmlGetChildByPath(node, L"string", 0); if (node != NULL) { char* s = mir_t2a_cp(xmlGetText(node), CP_ACP); @@ -140,24 +140,24 @@ std::list PasteToWeb2::GetFormats() std::map headers; headers["Content-Type"] = "text/xml"; - std::wstring content = _T("\r\ntypes"); + std::wstring content = L"\r\ntypes"; wchar_t* resCont = SendToWeb("http://wklej.to/api/", headers, content); if (resCont != NULL) { - HXML hXml = xmlParseString(resCont, NULL, _T("methodResponse")); + HXML hXml = xmlParseString(resCont, NULL, L"methodResponse"); if (hXml != NULL) { - HXML node = xmlGetChildByPath(hXml, _T("params/param/value/array/data/value/int"), 0); - if (node != NULL && !mir_tstrcmp(xmlGetText(node), _T("1"))) + HXML node = xmlGetChildByPath(hXml, L"params/param/value/array/data/value/int", 0); + if (node != NULL && !mir_tstrcmp(xmlGetText(node), L"1")) { - node = xmlGetChildByPath(hXml, _T("params/param/value/array/data"), 0); + node = xmlGetChildByPath(hXml, L"params/param/value/array/data", 0); if (node != NULL) { - node = xmlGetNthChild(node, _T("value"), 1); + node = xmlGetNthChild(node, L"value", 1); if (node != NULL) { - node = xmlGetChildByPath(node, _T("string"), 0); + node = xmlGetChildByPath(node, L"string", 0); if (node != NULL) { std::wstring str = xmlGetText(node); -- cgit v1.2.3