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:
@@ -28,10 +28,7 @@
|
||||
#include <string>
|
||||
#include <variant>
|
||||
|
||||
namespace xrpl {
|
||||
namespace test {
|
||||
namespace jtx {
|
||||
namespace oracle {
|
||||
namespace xrpl::test::jtx::oracle {
|
||||
|
||||
Oracle::Oracle(Env& env, CreateArg const& arg, bool submit) : env_(env)
|
||||
{
|
||||
@@ -137,7 +134,7 @@ Oracle::expectPrice(DataSeries const& series) const
|
||||
return false;
|
||||
for (auto const& data : series)
|
||||
{
|
||||
if (std::find_if(leSeries.begin(), leSeries.end(), [&](STObject const& o) -> bool {
|
||||
if (std::ranges::find_if(leSeries, [&](STObject const& o) -> bool {
|
||||
auto const& baseAsset = o.getFieldCurrency(sfBaseAsset);
|
||||
auto const& quoteAsset = o.getFieldCurrency(sfQuoteAsset);
|
||||
auto const& price = o.getFieldU64(sfAssetPrice);
|
||||
@@ -422,7 +419,4 @@ validDocumentID(AnyValue const& v)
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace oracle
|
||||
} // namespace jtx
|
||||
} // namespace test
|
||||
} // namespace xrpl
|
||||
} // namespace xrpl::test::jtx::oracle
|
||||
|
||||
Reference in New Issue
Block a user