chore: Enable clang-tidy modernize checks (#6975)

Co-authored-by: Bart <11445373+bthomee@users.noreply.github.com>
Co-authored-by: Bart <bthomee@users.noreply.github.com>
This commit is contained in:
Alex Kremer
2026-04-21 16:32:51 +01:00
committed by GitHub
parent ab887f5049
commit ce3951bbb3
699 changed files with 4626 additions and 5292 deletions

View File

@@ -32,20 +32,19 @@
#include <optional>
#include <type_traits>
namespace xrpl {
namespace test {
namespace xrpl::test {
struct PayStrandMPT_test : public beast::unit_test::suite
{
static jtx::DirectStepInfo
makeEndpointStep(jtx::Account const& src, jtx::Account const& dst, jtx::IOU const& iou)
{
return jtx::DirectStepInfo{src, dst, iou.currency};
return jtx::DirectStepInfo{.src = src, .dst = dst, .currency = iou.currency};
}
static jtx::MPTEndpointStepInfo
makeEndpointStep(jtx::Account const& src, jtx::Account const& dst, jtx::MPT const& mpt)
{
return jtx::MPTEndpointStepInfo{src, dst, mpt.mpt()};
return jtx::MPTEndpointStepInfo{.src = src, .dst = dst, .mptid = mpt.mpt()};
}
void
@@ -650,5 +649,4 @@ struct PayStrandMPT_test : public beast::unit_test::suite
BEAST_DEFINE_TESTSUITE(PayStrandMPT, app, xrpl);
} // namespace test
} // namespace xrpl
} // namespace xrpl::test