mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +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:
@@ -64,6 +64,7 @@ results::add(suite_results const& r)
|
||||
auto const elapsed = clock_type::now() - r.start;
|
||||
if (elapsed >= std::chrono::seconds{1})
|
||||
{
|
||||
// NOLINTNEXTLINE(modernize-use-ranges)
|
||||
auto const iter = std::lower_bound(
|
||||
top.begin(),
|
||||
top.end(),
|
||||
@@ -104,13 +105,9 @@ results::merge(results const& r)
|
||||
// combine the two top collections
|
||||
boost::container::static_vector<run_time, 2 * max_top> top_result;
|
||||
top_result.resize(top.size() + r.top.size());
|
||||
std::merge(
|
||||
top.begin(),
|
||||
top.end(),
|
||||
r.top.begin(),
|
||||
r.top.end(),
|
||||
top_result.begin(),
|
||||
[](run_time const& t1, run_time const& t2) { return t1.second > t2.second; });
|
||||
std::ranges::merge(top, r.top, top_result.begin(), [](run_time const& t1, run_time const& t2) {
|
||||
return t1.second > t2.second;
|
||||
});
|
||||
|
||||
if (top_result.size() > max_top)
|
||||
top_result.resize(max_top);
|
||||
|
||||
Reference in New Issue
Block a user