mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-09-09 21:04:50 -04:00
Fix codestyle
This commit is contained in:
parent
dbb44df6fb
commit
eec058cb3d
@ -1093,7 +1093,7 @@ Value const* Value::find(char const* begin, char const* end) const {
|
||||
return &(*it).second;
|
||||
}
|
||||
Value const* Value::find(const String& key) const {
|
||||
return find(key.data(),key.data() + key.length());
|
||||
return find(key.data(), key.data() + key.length());
|
||||
}
|
||||
Value* Value::demand(char const* begin, char const* end) {
|
||||
JSON_ASSERT_MESSAGE(type() == nullValue || type() == objectValue,
|
||||
|
@ -231,8 +231,7 @@ JSONTEST_FIXTURE_LOCAL(ValueTest, objects) {
|
||||
JSONTEST_ASSERT_EQUAL(nullptr, foundUnknownId);
|
||||
|
||||
const std::string stringUnknownIdKey = "unknown id";
|
||||
const Json::Value* stringFoundUnknownId =
|
||||
object1_.find(stringUnknownIdKey);
|
||||
const Json::Value* stringFoundUnknownId = object1_.find(stringUnknownIdKey);
|
||||
JSONTEST_ASSERT_EQUAL(nullptr, stringFoundUnknownId);
|
||||
|
||||
// Access through demand()
|
||||
|
Loading…
x
Reference in New Issue
Block a user