mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-06-09 01:40:14 +02:00
fix clang-format error for ci (#1036)
* fix clang-format error for ci * update
This commit is contained in:
parent
7e97345e26
commit
736409f1b5
@ -85,12 +85,9 @@ bool Reader::containsNewLine(Reader::Location begin, Reader::Location end) {
|
||||
// Class Reader
|
||||
// //////////////////////////////////////////////////////////////////
|
||||
|
||||
Reader::Reader()
|
||||
: features_(Features::all()) {}
|
||||
Reader::Reader() : features_(Features::all()) {}
|
||||
|
||||
Reader::Reader(const Features& features)
|
||||
: features_(features) {
|
||||
}
|
||||
Reader::Reader(const Features& features) : features_(features) {}
|
||||
|
||||
bool Reader::parse(const std::string& document,
|
||||
Value& root,
|
||||
@ -1022,9 +1019,8 @@ bool OurReader::containsNewLine(OurReader::Location begin,
|
||||
}
|
||||
|
||||
OurReader::OurReader(OurFeatures const& features)
|
||||
: begin_(), end_(), current_(), lastValueEnd_(),
|
||||
lastValue_(), features_(features), collectComments_() {
|
||||
}
|
||||
: begin_(), end_(), current_(), lastValueEnd_(), lastValue_(),
|
||||
features_(features), collectComments_() {}
|
||||
|
||||
bool OurReader::parse(const char* beginDoc,
|
||||
const char* endDoc,
|
||||
|
@ -1556,8 +1556,7 @@ PathArgument::PathArgument() {}
|
||||
PathArgument::PathArgument(ArrayIndex index)
|
||||
: index_(index), kind_(kindIndex) {}
|
||||
|
||||
PathArgument::PathArgument(const char* key)
|
||||
: key_(key), kind_(kindKey) {}
|
||||
PathArgument::PathArgument(const char* key) : key_(key), kind_(kindKey) {}
|
||||
|
||||
PathArgument::PathArgument(const String& key)
|
||||
: key_(key.c_str()), kind_(kindKey) {}
|
||||
|
@ -1391,8 +1391,10 @@ void ValueTest::checkIs(const Json::Value& value, const IsCheck& check) {
|
||||
|
||||
JSONTEST_FIXTURE(ValueTest, compareNull) {
|
||||
JSONTEST_ASSERT_PRED(checkIsEqual(Json::Value(), Json::Value()));
|
||||
JSONTEST_ASSERT_PRED(checkIsEqual(Json::Value::nullSingleton(), Json::Value()));
|
||||
JSONTEST_ASSERT_PRED(checkIsEqual(Json::Value::nullSingleton(), Json::Value::nullSingleton()));
|
||||
JSONTEST_ASSERT_PRED(
|
||||
checkIsEqual(Json::Value::nullSingleton(), Json::Value()));
|
||||
JSONTEST_ASSERT_PRED(
|
||||
checkIsEqual(Json::Value::nullSingleton(), Json::Value::nullSingleton()));
|
||||
}
|
||||
|
||||
JSONTEST_FIXTURE(ValueTest, compareInt) {
|
||||
@ -2644,8 +2646,7 @@ JSONTEST_FIXTURE(IteratorTest, indexes) {
|
||||
JSONTEST_FIXTURE(IteratorTest, const) {
|
||||
Json::Value const v;
|
||||
JSONTEST_ASSERT_THROWS(
|
||||
Json::Value::iterator it(v.begin()) // Compile, but throw.
|
||||
);
|
||||
Json::Value::iterator it(v.begin())); // Compile, but throw.
|
||||
|
||||
Json::Value value;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user