mirror of
https://github.com/XRPLF/rippled.git
synced 2026-08-23 15:20:54 +00:00
chore: Enable modernize-avoid-bind (#7711)
This commit is contained in:
@@ -41,7 +41,6 @@
|
||||
#include <chrono>
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <functional>
|
||||
#include <initializer_list>
|
||||
#include <iterator>
|
||||
#include <memory>
|
||||
@@ -893,7 +892,7 @@ public:
|
||||
void
|
||||
run() override
|
||||
{
|
||||
forAllApiVersions(std::bind_front(&AccountTx_test::testParameters, this));
|
||||
forAllApiVersions([this](unsigned apiVersion) { testParameters(apiVersion); });
|
||||
testContents();
|
||||
testAccountDelete();
|
||||
testMPT();
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
#include <xrpl/protocol/ErrorCodes.h>
|
||||
#include <xrpl/protocol/jss.h>
|
||||
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
@@ -350,7 +349,7 @@ public:
|
||||
{
|
||||
testLedgerRequest();
|
||||
testEvolution();
|
||||
forAllApiVersions(std::bind_front(&LedgerRequest_test::testBadInput, this));
|
||||
forAllApiVersions([this](unsigned apiVersion) { testBadInput(apiVersion); });
|
||||
testMoreThan256Closed();
|
||||
testNonAdmin();
|
||||
}
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
|
||||
#include <cstdint>
|
||||
#include <cstring>
|
||||
#include <functional>
|
||||
#include <initializer_list>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
@@ -5927,7 +5926,7 @@ public:
|
||||
void
|
||||
run() override
|
||||
{
|
||||
forAllApiVersions(std::bind_front(&RPCCall_test::testRPCCall, this));
|
||||
forAllApiVersions([this](unsigned apiVersion) { testRPCCall(apiVersion); });
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
#include <xrpl/protocol/ErrorCodes.h>
|
||||
#include <xrpl/protocol/jss.h>
|
||||
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
#include <stdexcept>
|
||||
#include <string>
|
||||
@@ -353,7 +352,7 @@ public:
|
||||
run() override
|
||||
{
|
||||
testBadInput();
|
||||
forAllApiVersions(std::bind_front(&TransactionEntry_test::testRequest, this));
|
||||
forAllApiVersions([this](unsigned apiVersion) { testRequest(apiVersion); });
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -31,7 +31,6 @@
|
||||
#include <cctype>
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
@@ -886,7 +885,7 @@ public:
|
||||
run() override
|
||||
{
|
||||
using namespace test::jtx;
|
||||
forAllApiVersions(std::bind_front(&Transaction_test::testBinaryRequest, this));
|
||||
forAllApiVersions([this](unsigned apiVersion) { testBinaryRequest(apiVersion); });
|
||||
|
||||
FeatureBitset const all{testableAmendments()};
|
||||
testWithFeats(all);
|
||||
@@ -899,7 +898,8 @@ public:
|
||||
testRangeCTIDRequest(features);
|
||||
testCTIDValidation(features);
|
||||
testRPCsForCTID(features);
|
||||
forAllApiVersions(std::bind_front(&Transaction_test::testRequest, this, features));
|
||||
forAllApiVersions(
|
||||
[this, features](unsigned apiVersion) { testRequest(features, apiVersion); });
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user