File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -582,7 +582,7 @@ void StyledWriter::writeCommentBeforeValue(const Value& root) {
582
582
while (iter != comment.end ()) {
583
583
document_ += *iter;
584
584
if (*iter == ' \n ' &&
585
- (iter != comment.end () && *(iter + 1 ) == ' /' ))
585
+ (( iter+ 1 ) != comment.end () && *(iter + 1 ) == ' /' ))
586
586
writeIndent ();
587
587
++iter;
588
588
}
@@ -798,7 +798,7 @@ void StyledStreamWriter::writeCommentBeforeValue(const Value& root) {
798
798
while (iter != comment.end ()) {
799
799
*document_ << *iter;
800
800
if (*iter == ' \n ' &&
801
- (iter != comment.end () && *(iter + 1 ) == ' /' ))
801
+ (( iter+ 1 ) != comment.end () && *(iter + 1 ) == ' /' ))
802
802
// writeIndent(); // would include newline
803
803
*document_ << indentString_;
804
804
++iter;
@@ -1086,7 +1086,7 @@ void BuiltStyledStreamWriter::writeCommentBeforeValue(Value const& root) {
1086
1086
while (iter != comment.end ()) {
1087
1087
*sout_ << *iter;
1088
1088
if (*iter == ' \n ' &&
1089
- (iter != comment.end () && *(iter + 1 ) == ' /' ))
1089
+ (( iter+ 1 ) != comment.end () && *(iter + 1 ) == ' /' ))
1090
1090
// writeIndent(); // would write extra newline
1091
1091
*sout_ << indentString_;
1092
1092
++iter;
You can’t perform that action at this time.
0 commit comments