mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Remove unused lambda captures
This commit is contained in:
@@ -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