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

@@ -397,7 +397,7 @@ public:
Serializer s;
jt.stx->add(s);
json::Value args{json::ObjectValue};
json::Value args{json::ValueType::Object};
args[jss::tx_blob] = strHex(s.slice());
args[jss::fail_hard] = true;
@@ -715,7 +715,7 @@ public:
}
{
auto params = json::Value(json::NullValue);
auto params = json::Value(json::ValueType::Null);
envs(noop(alice), Fee(kNONE), Seq(kNONE))(params);
// Make sure we get the right account back.
@@ -728,7 +728,7 @@ public:
}
{
auto params = json::Value(json::ObjectValue);
auto params = json::Value(json::ValueType::Object);
// Force the factor low enough to fail
params[jss::fee_mult_max] = 1;
params[jss::fee_div_max] = 2;
@@ -867,7 +867,7 @@ public:
return cfg;
}),
nullptr,
beast::severities::KDisabled};
beast::Severity::Disabled};
});
pass();
}