Remove unused lambda captures

This commit is contained in:
seelabs
2017-07-18 13:30:59 -04:00
parent 1a56b9c5f2
commit 5ad49454f1
4 changed files with 6 additions and 6 deletions

View File

@@ -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; };

View File

@@ -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);

View File

@@ -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);

View File

@@ -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.