diff options
author | George Hazan <george.hazan@gmail.com> | 2016-07-25 10:31:04 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-07-25 10:31:04 +0000 |
commit | 8ae3679aa1339ce9abee53adb69902bd6b7513dc (patch) | |
tree | 94ef8927e12043ed6dcc15e1e640d68a8add520e /plugins/Quotes/src/XMLEngineMI.cpp | |
parent | 1e273e28d89b5838e3d0f0cafac9676577cb71ce (diff) |
hello, Unix.
phase 1: removing _T()
git-svn-id: http://svn.miranda-ng.org/main/trunk@17127 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Quotes/src/XMLEngineMI.cpp')
-rw-r--r-- | plugins/Quotes/src/XMLEngineMI.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Quotes/src/XMLEngineMI.cpp b/plugins/Quotes/src/XMLEngineMI.cpp index 59c76ed58f..5f694a31d0 100644 --- a/plugins/Quotes/src/XMLEngineMI.cpp +++ b/plugins/Quotes/src/XMLEngineMI.cpp @@ -99,7 +99,7 @@ IXMLNode::TXMLNodePtr CXMLEngineMI::LoadFile(const tstring& rsFileName)const {
IXMLNode::TXMLNodePtr pResult;
FILE *stream;
- if (0 == ::_tfopen_s(&stream, rsFileName.c_str(), _T("r"))) {
+ if (0 == ::_tfopen_s(&stream, rsFileName.c_str(), L"r")) {
struct _stat st;
if (-1 != ::_fstat(::_fileno(stream), &st)) {
std::vector<char> aBuffer(st.st_size + 1);
@@ -139,10 +139,10 @@ bool CXMLEngineMI::SaveFile(const tstring& rsFileName, const IXMLNode::TXMLNodeP if (pXML) {
tofstream file(rsFileName.c_str());
if (file.good()) {
- IXMLNode::TXMLNodePtr pRoot(create_node(_T("xml"), tstring(), true));
+ IXMLNode::TXMLNodePtr pRoot(create_node(L"xml", tstring(), true));
if (pRoot) {
- pRoot->AddAttribute(_T("version"), _T("1.0"));
- pRoot->AddAttribute(_T("encoding"), _T("UTF-8"));
+ pRoot->AddAttribute(L"version", L"1.0");
+ pRoot->AddAttribute(L"encoding", L"UTF-8");
file << *pRoot;
}
|