Skip to content

Commit 84ca7d6

Browse files
committed
Apply the formatting specified in .clang-format file.
1 parent fc20134 commit 84ca7d6

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/lib_json/json_reader.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -542,8 +542,8 @@ bool Reader::readArray(Token& token) {
542542
while (currentToken.type_ == tokenComment && ok) {
543543
ok = readToken(currentToken);
544544
}
545-
bool badTokenType =
546-
(currentToken.type_ != tokenArraySeparator && currentToken.type_ != tokenArrayEnd);
545+
bool badTokenType = (currentToken.type_ != tokenArraySeparator &&
546+
currentToken.type_ != tokenArrayEnd);
547547
if (!ok || badTokenType) {
548548
return addErrorAndRecover("Missing ',' or ']' in array declaration",
549549
currentToken, tokenArrayEnd);
@@ -1538,8 +1538,8 @@ bool OurReader::readArray(Token& token) {
15381538
while (currentToken.type_ == tokenComment && ok) {
15391539
ok = readToken(currentToken);
15401540
}
1541-
bool badTokenType =
1542-
(currentToken.type_ != tokenArraySeparator && token.type_ != tokenArrayEnd);
1541+
bool badTokenType = (currentToken.type_ != tokenArraySeparator &&
1542+
token.type_ != tokenArrayEnd);
15431543
if (!ok || badTokenType) {
15441544
return addErrorAndRecover("Missing ',' or ']' in array declaration",
15451545
currentToken, tokenArrayEnd);

src/lib_json/json_value.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,8 +420,8 @@ Value::Value(const char* value) {
420420

421421
Value::Value(const char* begin, const char* end) {
422422
initBasic(stringValue, true);
423-
value_.string_ = duplicateAndPrefixStringValue(
424-
begin, static_cast<unsigned>(end - begin));
423+
value_.string_ =
424+
duplicateAndPrefixStringValue(begin, static_cast<unsigned>(end - begin));
425425
}
426426

427427
Value::Value(const JSONCPP_STRING& value) {

0 commit comments

Comments
 (0)