From db2f1ccc330e7d75dc66429033556a684a3415ea Mon Sep 17 00:00:00 2001 From: Jingchen Date: Wed, 3 Jun 2026 13:23:31 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Sergey Kuznetsov --- src/tests/libxrpl/ledger/AmendmentTable.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/tests/libxrpl/ledger/AmendmentTable.cpp b/src/tests/libxrpl/ledger/AmendmentTable.cpp index 8242894acc..ca7713e0ca 100644 --- a/src/tests/libxrpl/ledger/AmendmentTable.cpp +++ b/src/tests/libxrpl/ledger/AmendmentTable.cpp @@ -45,9 +45,8 @@ namespace xrpl::test { * Provides a TestServiceRegistry (with an in-memory wallet DB) and a collection * of helpers for building amendment sections, feature lists and validators. */ -class AmendmentTableTest : public ::testing::Test +struct AmendmentTableTest : ::testing::Test { -protected: static uint256 amendmentId(std::string in) { @@ -123,7 +122,7 @@ protected: template static std::size_t - totalsize(std::vector const& src, Args const&... args) + totalSize(std::vector const& src, Args const&... args) { if constexpr (sizeof...(args) > 0) return src.size() + totalsize(args...);