mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-04-20 07:51:32 +02:00
Apply the formatting specified in .clang-format file.
This commit is contained in:
parent
fc20134c92
commit
84ca7d6f0b
@ -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);
|
||||
|
@ -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<unsigned>(end - begin));
|
||||
value_.string_ =
|
||||
duplicateAndPrefixStringValue(begin, static_cast<unsigned>(end - begin));
|
||||
}
|
||||
|
||||
Value::Value(const JSONCPP_STRING& value) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user