mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-30 10:30:22 +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:
@@ -34,8 +34,7 @@
|
||||
#include <optional>
|
||||
#include <vector>
|
||||
|
||||
namespace xrpl {
|
||||
namespace test {
|
||||
namespace xrpl::test {
|
||||
|
||||
static char const* bob_account_objects[] = {
|
||||
R"json({
|
||||
@@ -942,7 +941,7 @@ public:
|
||||
jss::RippleState.c_str(),
|
||||
jss::PayChannel.c_str(),
|
||||
jss::PermissionedDomain.c_str()};
|
||||
std::sort(v.begin(), v.end());
|
||||
std::ranges::sort(v);
|
||||
return v;
|
||||
}();
|
||||
|
||||
@@ -958,7 +957,7 @@ public:
|
||||
{
|
||||
gotLedgerTypes.push_back(aobjs[i]["LedgerEntryType"].asString());
|
||||
}
|
||||
std::sort(gotLedgerTypes.begin(), gotLedgerTypes.end());
|
||||
std::ranges::sort(gotLedgerTypes);
|
||||
BEAST_EXPECT(gotLedgerTypes == expectedLedgerTypes);
|
||||
}
|
||||
}
|
||||
@@ -983,7 +982,7 @@ public:
|
||||
auto const objs = resp[jss::result][jss::account_objects];
|
||||
for (auto const& obj : resp[jss::result][jss::account_objects])
|
||||
typesOut.push_back(obj[sfLedgerEntryType.fieldName].asString());
|
||||
std::sort(typesOut.begin(), typesOut.end());
|
||||
std::ranges::sort(typesOut);
|
||||
};
|
||||
// Make a lambda we can use to check the number of fetched
|
||||
// account objects and their ledger type
|
||||
@@ -1367,5 +1366,4 @@ public:
|
||||
|
||||
BEAST_DEFINE_TESTSUITE(AccountObjects, rpc, xrpl);
|
||||
|
||||
} // namespace test
|
||||
} // namespace xrpl
|
||||
} // namespace xrpl::test
|
||||
|
||||
Reference in New Issue
Block a user