mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-14 08:05:50 +00:00
Only object instances can have members (RIPD-1100)
This commit is contained in:
@@ -1002,6 +1002,9 @@ Value::removeMember ( std::string const& key )
|
|||||||
bool
|
bool
|
||||||
Value::isMember ( const char* key ) const
|
Value::isMember ( const char* key ) const
|
||||||
{
|
{
|
||||||
|
if (type_ != objectValue)
|
||||||
|
return false;
|
||||||
|
|
||||||
const Value* value = & ((*this)[key]);
|
const Value* value = & ((*this)[key]);
|
||||||
return value != &null;
|
return value != &null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user