mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-04-25 01:19:05 +02:00
Value::find(): Fix assert message
This commit is contained in:
parent
0adb053294
commit
eb7bd9546e
@ -1115,7 +1115,7 @@ bool Value::isValidIndex(ArrayIndex index) const { return index < size(); }
|
|||||||
|
|
||||||
Value const* Value::find(char const* begin, char const* end) const {
|
Value const* Value::find(char const* begin, char const* end) const {
|
||||||
JSON_ASSERT_MESSAGE(type() == nullValue || type() == objectValue,
|
JSON_ASSERT_MESSAGE(type() == nullValue || type() == objectValue,
|
||||||
"in Json::Value::find(key, end, found): requires "
|
"in Json::Value::find(begin, end): requires "
|
||||||
"objectValue or nullValue");
|
"objectValue or nullValue");
|
||||||
if (type() == nullValue)
|
if (type() == nullValue)
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user