summaryrefslogtreecommitdiffstats
path: root/Project/FileHanding.cpp
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2019-10-31 22:15:41 -0300
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2019-10-31 22:15:41 -0300
commit65c5187620aa1efde0104e70d02c67fc7b26cca1 (patch)
tree51e47c359857070a221e2257d83e20a8dc81ae22 /Project/FileHanding.cpp
parent38722eb732fb0e9f1dbe4a518df43fc5c6cc913c (diff)
downloadPSP.git-65c5187620aa1efde0104e70d02c67fc7b26cca1.tar.gz
PSP.git-65c5187620aa1efde0104e70d02c67fc7b26cca1.tar.xz
PSP.git-65c5187620aa1efde0104e70d02c67fc7b26cca1.zip
Code changes to use Mingw-w64 compiler and WxWidgets 3.1.3
Diffstat (limited to 'Project/FileHanding.cpp')
-rw-r--r--Project/FileHanding.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Project/FileHanding.cpp b/Project/FileHanding.cpp
index ed747a8..b8e39ce 100644
--- a/Project/FileHanding.cpp
+++ b/Project/FileHanding.cpp
@@ -24,11 +24,11 @@ FileHanding::FileHanding() {}
void FileHanding::SaveProject(wxFileName path)
{
// Erase the file (if exists or not) and write the initial data
- std::ofstream writeProjectsFile(path.GetFullPath());
+ std::ofstream writeProjectsFile(path.GetFullPath().mb_str());
writeProjectsFile.close();
rapidxml::xml_document<> doc;
- rapidxml::file<> xmlFile(path.GetFullPath().mb_str());
+ rapidxml::file<> xmlFile(path.GetFullPath());
doc.parse<0>(xmlFile.data());
rapidxml::xml_node<>* decl = doc.allocate_node(rapidxml::node_declaration);
@@ -257,7 +257,7 @@ void FileHanding::SaveProject(wxFileName path)
}
//}
- std::ofstream writeXML(path.GetFullPath());
+ std::ofstream writeXML(path.GetFullPath().mb_str());
writeXML << doc;
writeXML.close();
}
@@ -579,7 +579,7 @@ bool FileHanding::OpenProject(wxFileName path)
void FileHanding::SaveControl(wxFileName path)
{
// Same process present in SaveProject():
- std::ofstream writeProjectsFile(path.GetFullPath());
+ std::ofstream writeProjectsFile(path.GetFullPath().mb_str());
writeProjectsFile.close();
rapidxml::xml_document<> doc;
@@ -601,7 +601,7 @@ void FileHanding::SaveControl(wxFileName path)
auto elementsNode = XMLParser::AppendNode(doc, rootNode, "ControlElements");
SaveControlElements(doc, elementsNode);
- std::ofstream writeXML(path.GetFullPath());
+ std::ofstream writeXML(path.GetFullPath().mb_str());
writeXML << doc;
writeXML.close();
}