Skip to content

Commit

Permalink
Fix the issue where it became impossible to write to XML files after …
Browse files Browse the repository at this point in the history
…updating POCO C++ Libraries.
  • Loading branch information
sdottaka committed May 15, 2024
1 parent 99d9142 commit 63a0889
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Src/InternalPlugins.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ bool SaveToXML(const String& pluginsXMLPath, const std::list<Info>& internalPlug
try
{
paths::CreateIfNeeded(paths::GetPathOnly(pluginsXMLPath));
FileStream out(ucr::toUTF8(pluginsXMLPath), FileStream::trunc);
FileStream out(ucr::toUTF8(pluginsXMLPath), FileStream::out | FileStream::trunc);
XMLWriter writer(out, XMLWriter::WRITE_XML_DECLARATION | XMLWriter::PRETTY_PRINT);
writer.startDocument();
writer.startElement("", "", PluginsElement);
Expand Down
2 changes: 1 addition & 1 deletion Src/ProjectFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ bool ProjectFile::Read(const String& path)
*/
bool ProjectFile::Save(const String& path) const
{
FileStream out(toUTF8(path), FileStream::trunc);
FileStream out(toUTF8(path), FileStream::out | FileStream::trunc);
XMLWriter writer(out, XMLWriter::WRITE_XML_DECLARATION | XMLWriter::PRETTY_PRINT);
writer.startDocument();
writer.startElement("", "", Root_element_name);
Expand Down

0 comments on commit 63a0889

Please sign in to comment.