diff --git a/src/lib_json/json_reader.cpp b/src/lib_json/json_reader.cpp index 7628e71..09aeba9 100644 --- a/src/lib_json/json_reader.cpp +++ b/src/lib_json/json_reader.cpp @@ -542,8 +542,8 @@ bool Reader::readArray(Token& token) { while (currentToken.type_ == tokenComment && ok) { ok = readToken(currentToken); } - bool badTokenType = - (currentToken.type_ != tokenArraySeparator && currentToken.type_ != tokenArrayEnd); + bool badTokenType = (currentToken.type_ != tokenArraySeparator && + currentToken.type_ != tokenArrayEnd); if (!ok || badTokenType) { return addErrorAndRecover("Missing ',' or ']' in array declaration", currentToken, tokenArrayEnd); @@ -1538,8 +1538,8 @@ bool OurReader::readArray(Token& token) { while (currentToken.type_ == tokenComment && ok) { ok = readToken(currentToken); } - bool badTokenType = - (currentToken.type_ != tokenArraySeparator && token.type_ != tokenArrayEnd); + bool badTokenType = (currentToken.type_ != tokenArraySeparator && + token.type_ != tokenArrayEnd); if (!ok || badTokenType) { return addErrorAndRecover("Missing ',' or ']' in array declaration", currentToken, tokenArrayEnd); diff --git a/src/lib_json/json_value.cpp b/src/lib_json/json_value.cpp index 1160c22..cc5e8fe 100644 --- a/src/lib_json/json_value.cpp +++ b/src/lib_json/json_value.cpp @@ -420,8 +420,8 @@ Value::Value(const char* value) { Value::Value(const char* begin, const char* end) { initBasic(stringValue, true); - value_.string_ = duplicateAndPrefixStringValue( - begin, static_cast(end - begin)); + value_.string_ = + duplicateAndPrefixStringValue(begin, static_cast(end - begin)); } Value::Value(const JSONCPP_STRING& value) {