summaryrefslogtreecommitdiff
path: root/src/cli
diff options
context:
space:
mode:
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);