avoid extra newlines in StyledStreamWriter

Add indented_ as a bitfield. (Verified that sizeof(StyledStreamWriter)
remains 96 for binary compatibility. But the new symbol requires a minor
version-bump.)
This commit is contained in:
Christopher Dunn
2015-01-23 13:09:43 -06:00
parent f8ca6cbb25
commit d383056fbb
2 changed files with 13 additions and 15 deletions

View File

@@ -187,7 +187,8 @@ private:
std::string indentString_;
int rightMargin_;
std::string indentation_;
bool addChildValues_;
bool addChildValues_ : 1;
bool indented_ : 1;
};
#if defined(JSON_HAS_INT64)