Skip to content

Commit 1e21e63

Browse files
committed
default \t indentation, All comments
1 parent dea6f8d commit 1e21e63

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/lib_json/json_writer.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -944,11 +944,17 @@ class StreamWriterBuilder {
944944
CommentStyle cs_;
945945
std::string indentation_;
946946
public:
947+
StreamWriterBuilder();
947948
virtual ~StreamWriterBuilder();
948949
virtual void setCommentStyle(CommentStyle cs);
949950
virtual void setIndentation(std::string indentation);
950951
virtual StreamWriter* newStreamWriter(std::ostream* sout) const;
951952
};
953+
StreamWriterBuilder::StreamWriterBuilder()
954+
: cs_(CommentStyle::All)
955+
, indentation_("\t")
956+
{
957+
}
952958
StreamWriterBuilder::~StreamWriterBuilder()
953959
{
954960
}

0 commit comments

Comments
 (0)