mirror of
https://github.com/XRPLF/rippled.git
synced 2026-08-23 07:10:53 +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:
@@ -17,8 +17,7 @@
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
namespace xrpl {
|
||||
namespace tests {
|
||||
namespace xrpl::tests {
|
||||
|
||||
class cluster_test : public xrpl::TestSuite
|
||||
{
|
||||
@@ -92,7 +91,7 @@ public:
|
||||
|
||||
for (auto const& n : network)
|
||||
{
|
||||
auto found = std::find(cluster.begin(), cluster.end(), n);
|
||||
auto found = std::ranges::find(cluster, n);
|
||||
BEAST_EXPECT(static_cast<bool>(c->member(n)) == (found != cluster.end()));
|
||||
}
|
||||
}
|
||||
@@ -109,7 +108,7 @@ public:
|
||||
|
||||
for (auto const& n : network)
|
||||
{
|
||||
auto found = std::find(cluster.begin(), cluster.end(), n);
|
||||
auto found = std::ranges::find(cluster, n);
|
||||
BEAST_EXPECT(static_cast<bool>(c->member(n)) == (found != cluster.end()));
|
||||
}
|
||||
}
|
||||
@@ -254,5 +253,4 @@ public:
|
||||
|
||||
BEAST_DEFINE_TESTSUITE(cluster, overlay, xrpl);
|
||||
|
||||
} // namespace tests
|
||||
} // namespace xrpl
|
||||
} // namespace xrpl::tests
|
||||
|
||||
Reference in New Issue
Block a user