mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-04 11:15:56 +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
|
||||
Value::isMember ( const char* key ) const
|
||||
{
|
||||
if (type_ != objectValue)
|
||||
return false;
|
||||
|
||||
const Value* value = & ((*this)[key]);
|
||||
return value != &null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user