File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -92,14 +92,16 @@ class JSON_API StreamWriterBuilder : public StreamWriter::Factory {
92
92
/* * \brief How to write comments.
93
93
* Default: All
94
94
*/
95
- StreamWriter::CommentStyle cs_ = StreamWriter::CommentStyle::All ;
95
+ StreamWriter::CommentStyle cs_;
96
96
/* * \brief Write in human-friendly style.
97
97
98
98
If "", then skip all indentation and newlines.
99
99
In that case, you probably want CommentStyle::None also.
100
100
Default: "\t"
101
101
*/
102
- std::string indentation_ = " \t " ;
102
+ std::string indentation_;
103
+
104
+ StreamWriterBuilder ();
103
105
104
106
// / Do not take ownership of sout, but maintain a reference.
105
107
StreamWriter* newStreamWriter (std::ostream* sout) const ;
Original file line number Diff line number Diff line change @@ -961,6 +961,10 @@ int MyStreamWriter::write(Value const& root)
961
961
}
962
962
StreamWriter::Factory::~Factory ()
963
963
{}
964
+ StreamWriterBuilder::StreamWriterBuilder ()
965
+ : cs_(StreamWriter::CommentStyle::All)
966
+ , indentation_(" \t " )
967
+ {}
964
968
StreamWriter* StreamWriterBuilder::newStreamWriter (std::ostream* stream) const
965
969
{
966
970
std::string colonSymbol = " : " ;
You can’t perform that action at this time.
0 commit comments