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

@@ -224,7 +224,7 @@ parseUnsigned(
template <class STResult, class Integer = std::uint16_t>
static std::optional<detail::STVar>
parseUint16(
parseUInt16(
SField const& field,
std::string const& jsonName,
std::string const& fieldName,
@@ -285,7 +285,7 @@ parseUint16(
template <class STResult, class Integer = std::uint32_t>
static std::optional<detail::STVar>
parseUint32(
parseUInt32(
SField const& field,
std::string const& jsonName,
std::string const& fieldName,
@@ -434,14 +434,14 @@ parseLeaf(
break;
case STI_UINT16:
ret = parseUint16<STUInt16>(field, jsonName, fieldName, name, value, error);
ret = parseUInt16<STUInt16>(field, jsonName, fieldName, name, value, error);
if (!ret)
return ret;
break;
case STI_UINT32:
ret = parseUint32<STUInt32>(field, jsonName, fieldName, name, value, error);
ret = parseUInt32<STUInt32>(field, jsonName, fieldName, name, value, error);
if (!ret)
return ret;
@@ -456,7 +456,7 @@ parseLeaf(
std::uint64_t val = 0;
bool const useBase10 = field.shouldMeta(SField::SMdBaseTen);
bool const useBase10 = field.shouldMeta(SField::kSMD_BASE_TEN);
// if the field is amount, serialize as base 10
auto [p, ec] = std::from_chars(