mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Remove unused lambda captures
This commit is contained in:
@@ -229,21 +229,21 @@ struct FlowDebugInfo
|
||||
}
|
||||
ostr << ']';
|
||||
};
|
||||
auto writeXrpAmtList = [&ostr, &write_list](
|
||||
auto writeXrpAmtList = [&write_list](
|
||||
std::vector<EitherAmount> const& amts, char delim=';') {
|
||||
auto get_val = [](EitherAmount const& a) -> std::string {
|
||||
return ripple::to_string (a.xrp);
|
||||
};
|
||||
write_list (amts, get_val, delim);
|
||||
};
|
||||
auto writeIouAmtList = [&ostr, &write_list](
|
||||
auto writeIouAmtList = [&write_list](
|
||||
std::vector<EitherAmount> const& amts, char delim=';') {
|
||||
auto get_val = [](EitherAmount const& a) -> std::string {
|
||||
return ripple::to_string (a.iou);
|
||||
};
|
||||
write_list (amts, get_val, delim);
|
||||
};
|
||||
auto writeIntList = [&ostr, &write_list](
|
||||
auto writeIntList = [&write_list](
|
||||
std::vector<size_t> const& vals, char delim=';') {
|
||||
auto get_val = [](
|
||||
size_t const& v) -> size_t const& { return v; };
|
||||
|
||||
@@ -783,7 +783,7 @@ struct Flow_test : public beast::unit_test::suite
|
||||
{
|
||||
std::vector<std::shared_ptr<SLE const>> result;
|
||||
forEachItem (*env.current (), account,
|
||||
[&env, &result](std::shared_ptr<SLE const> const& sle)
|
||||
[&result](std::shared_ptr<SLE const> const& sle)
|
||||
{
|
||||
if (sle->getType() == ltOFFER)
|
||||
result.push_back (sle);
|
||||
|
||||
@@ -569,7 +569,7 @@ public:
|
||||
{
|
||||
std::vector<std::shared_ptr<SLE const>> result;
|
||||
forEachItem (*env.current (), account,
|
||||
[&env, &result](std::shared_ptr<SLE const> const& sle)
|
||||
[&result](std::shared_ptr<SLE const> const& sle)
|
||||
{
|
||||
if (sle->getType() == ltOFFER)
|
||||
result.push_back (sle);
|
||||
|
||||
@@ -128,7 +128,7 @@ public:
|
||||
|
||||
// This lambda contains the bulk of the test code.
|
||||
auto testMalformedSigningAccount =
|
||||
[this, &txn, &id1]
|
||||
[this, &txn]
|
||||
(STObject const& signer, bool expectPass)
|
||||
{
|
||||
// Create SigningAccounts array.
|
||||
|
||||
Reference in New Issue
Block a user