App: Change output stream from std::stringstream to std::ostream

This commit is contained in:
wmayer
2024-03-10 08:48:42 +01:00
committed by wwmayer
parent 1775991b50
commit 7b7a806bdf
2 changed files with 5 additions and 5 deletions

View File

@@ -143,7 +143,7 @@ private:
metadata.uuid = propMap.at("Uid");
}
void readProperty(DOMNode* propNode, std::map<std::string, std::string>& propMap)
static void readProperty(DOMNode* propNode, std::map<std::string, std::string>& propMap)
{
DOMNode* nameAttr = propNode->getAttributes()->getNamedItem(XStr("name").unicodeForm());
if (nameAttr) {
@@ -530,7 +530,7 @@ std::string ProjectFile::extractInputFile(const std::string& name)
return {};
}
void ProjectFile::readInputFile(const std::string& name, std::stringstream& str)
void ProjectFile::readInputFile(const std::string& name, std::ostream& str)
{
Base::FileInfo fi(extractInputFile(name));
if (fi.exists()) {
@@ -543,7 +543,7 @@ void ProjectFile::readInputFile(const std::string& name, std::stringstream& str)
// Read the given input file from the zip directly into the given stream (not using a temporary
// file)
void ProjectFile::readInputFileDirect(const std::string& name, std::stringstream& str)
void ProjectFile::readInputFileDirect(const std::string& name, std::ostream& str)
{
zipios::ZipFile project(stdFile);
std::unique_ptr<std::istream> istr(project.getInputStream(name));