From fbcdbd6ea539520826492501be87823bae1f475d Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Mon, 16 Feb 2015 00:18:13 +0100 Subject: Fixed writing to file not working properly --- src/cli/Main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cli') 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 doc = docNode.cast(); // write output if (outputPath != "-") { - std::fstream out{outputPath}; + std::ofstream out{outputPath}; createOutput(doc, out, format, logger); } else { createOutput(doc, std::cout, format, logger); -- cgit v1.2.3