diff options
Diffstat (limited to 'Project/FileHanding.cpp')
-rw-r--r-- | Project/FileHanding.cpp | 10 |
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(); } |