summaryrefslogtreecommitdiff
path: root/src/cli
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-02-16 00:18:13 +0100
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-02-16 00:18:13 +0100
commitfbcdbd6ea539520826492501be87823bae1f475d (patch)
tree8ebf669dfef969ddfe9b3bbf2da723917db100ce /src/cli
parent1279302414a8a8648239864c69a9ead0803dd7b1 (diff)
Fixed writing to file not working properly
Diffstat (limited to 'src/cli')
-rw-r--r--src/cli/Main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cli/Main.cpp b/src/cli/Main.cpp
index 9688757..d4ef45f 100644
--- a/src/cli/Main.cpp
+++ b/src/cli/Main.cpp
@@ -246,7 +246,7 @@ int main(int argc, char **argv)
Rooted<Document> doc = docNode.cast<Document>();
// write output
if (outputPath != "-") {
- std::fstream out{outputPath};
+ std::ofstream out{outputPath};
createOutput(doc, out, format, logger);
} else {
createOutput(doc, std::cout, format, logger);