mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-23 23:20:33 +00:00
refactor: Use more scoped enums (#7086)
This commit is contained in:
@@ -58,7 +58,7 @@ STNumber::associateAsset(Asset const& a)
|
||||
STTakesAsset::associateAsset(a);
|
||||
|
||||
XRPL_ASSERT_PARTS(
|
||||
getFName().shouldMeta(SField::SMdNeedsAsset),
|
||||
getFName().shouldMeta(SField::kSMD_NEEDS_ASSET),
|
||||
"STNumber::associateAsset",
|
||||
"field needs asset");
|
||||
|
||||
@@ -76,7 +76,7 @@ STNumber::add(Serializer& s) const
|
||||
auto const exponent = value.exponent();
|
||||
|
||||
SField const& field = getFName();
|
||||
if (field.shouldMeta(SField::SMdNeedsAsset))
|
||||
if (field.shouldMeta(SField::kSMD_NEEDS_ASSET))
|
||||
{
|
||||
// asset is defined in the STTakesAsset base class
|
||||
if (asset_)
|
||||
|
||||
Reference in New Issue
Block a user