From 1e21e63853f461d3f35df77c2f1aef26b648161e Mon Sep 17 00:00:00 2001 From: Christopher Dunn Date: Sun, 25 Jan 2015 16:01:59 -0600 Subject: [PATCH] default \t indentation, All comments --- src/lib_json/json_writer.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib_json/json_writer.cpp b/src/lib_json/json_writer.cpp index 1c9b7a4..eea17b6 100644 --- a/src/lib_json/json_writer.cpp +++ b/src/lib_json/json_writer.cpp @@ -944,11 +944,17 @@ class StreamWriterBuilder { CommentStyle cs_; std::string indentation_; public: + StreamWriterBuilder(); virtual ~StreamWriterBuilder(); virtual void setCommentStyle(CommentStyle cs); virtual void setIndentation(std::string indentation); virtual StreamWriter* newStreamWriter(std::ostream* sout) const; }; +StreamWriterBuilder::StreamWriterBuilder() + : cs_(CommentStyle::All) + , indentation_("\t") +{ +} StreamWriterBuilder::~StreamWriterBuilder() { }