mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-24 23:50:22 +00:00
refactor: Use more scoped enums (#7086)
This commit is contained in:
@@ -130,12 +130,12 @@ STArray::getText() const
|
||||
json::Value
|
||||
STArray::getJson(JsonOptions p) const
|
||||
{
|
||||
json::Value v = json::ArrayValue;
|
||||
json::Value v = json::ValueType::Array;
|
||||
for (auto const& object : v_)
|
||||
{
|
||||
if (object.getSType() != STI_NOTPRESENT)
|
||||
{
|
||||
json::Value& inner = v.append(json::ObjectValue);
|
||||
json::Value& inner = v.append(json::ValueType::Object);
|
||||
inner[object.getFName().getJsonName()] = object.getJson(p);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user