mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-03 16:56:48 +00:00
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:
@@ -45,8 +45,7 @@
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
namespace xrpl {
|
||||
namespace test {
|
||||
namespace xrpl::test {
|
||||
|
||||
class MultiSign_test : public beast::unit_test::suite
|
||||
{
|
||||
@@ -363,7 +362,7 @@ public:
|
||||
env.require(owners(alice, 1));
|
||||
|
||||
msig phantoms{bogie, demon};
|
||||
std::reverse(phantoms.signers.begin(), phantoms.signers.end());
|
||||
std::ranges::reverse(phantoms.signers);
|
||||
std::uint32_t const aliceSeq = env.seq(alice);
|
||||
env(noop(alice),
|
||||
phantoms,
|
||||
@@ -1202,7 +1201,7 @@ public:
|
||||
STTx local = *(tx.stx);
|
||||
// Unsort the Signers array.
|
||||
auto& signers = local.peekFieldArray(sfSigners);
|
||||
std::reverse(signers.begin(), signers.end());
|
||||
std::ranges::reverse(signers);
|
||||
// Signature should fail.
|
||||
auto const info = submitSTTx(local);
|
||||
BEAST_EXPECT(
|
||||
@@ -1564,5 +1563,4 @@ public:
|
||||
|
||||
BEAST_DEFINE_TESTSUITE(MultiSign, app, xrpl);
|
||||
|
||||
} // namespace test
|
||||
} // namespace xrpl
|
||||
} // namespace xrpl::test
|
||||
|
||||
Reference in New Issue
Block a user