refactor: Use more scoped enums (#7086)

This commit is contained in:
Alex Kremer
2026-05-11 16:39:48 +01:00
committed by GitHub
parent 779b49cd93
commit cdee9a675c
379 changed files with 2771 additions and 2864 deletions

View File

@@ -642,7 +642,7 @@ canSubtract(STAmount const& a, STAmount const& b)
void
STAmount::setJson(json::Value& elem) const
{
elem = json::ObjectValue;
elem = json::ValueType::Object;
if (!native())
{
@@ -1057,8 +1057,8 @@ amountFromJson(SField const& name, json::Value const& v)
else if (v.isArray())
{
value = v.get(json::UInt(0), 0);
currencyOrMPTID = v.get(json::UInt(1), json::NullValue);
issuer = v.get(json::UInt(2), json::NullValue);
currencyOrMPTID = v.get(json::UInt(1), json::ValueType::Null);
issuer = v.get(json::UInt(2), json::ValueType::Null);
}
else if (v.isString())
{