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

@@ -213,7 +213,7 @@ class TMGetObjectByHash_test : public beast::unit_test::Suite
void
run() override
{
int const limit = static_cast<int>(Tuning::HardMaxReplyNodes);
int const limit = static_cast<int>(Tuning::kHARD_MAX_REPLY_NODES);
testReplyLimit(limit + 1, limit);
testReplyLimit(limit, limit);
testReplyLimit(limit - 1, limit - 1);

View File

@@ -350,7 +350,7 @@ public:
void
testProtocol()
{
auto thresh = beast::severities::Severity::KInfo;
auto thresh = beast::Severity::Info;
auto logs = std::make_unique<Logs>(thresh);
protocol::TMManifests const manifests;