mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-02-25 07:41:07 +01:00
Fix dead code scenario.
Changes explained
This commit is contained in:
parent
17c244e644
commit
66b77384d8
@ -344,7 +344,6 @@ bool StyledWriter::isMultineArray(const Value &value) {
|
||||
for (int index = 0; index < size && !isMultiLine; ++index) {
|
||||
writeValue(value[index]);
|
||||
lineLength += int(childValues_[index].length());
|
||||
isMultiLine = isMultiLine || hasCommentForValue(value[index]);
|
||||
}
|
||||
addChildValues_ = false;
|
||||
isMultiLine = isMultiLine || lineLength >= rightMargin_;
|
||||
@ -568,7 +567,6 @@ bool StyledStreamWriter::isMultineArray(const Value &value) {
|
||||
for (int index = 0; index < size && !isMultiLine; ++index) {
|
||||
writeValue(value[index]);
|
||||
lineLength += int(childValues_[index].length());
|
||||
isMultiLine = isMultiLine || hasCommentForValue(value[index]);
|
||||
}
|
||||
addChildValues_ = false;
|
||||
isMultiLine = isMultiLine || lineLength >= rightMargin_;
|
||||
|
Loading…
x
Reference in New Issue
Block a user