diff --git a/src/ripple/app/paths/impl/FlowDebugInfo.h b/src/ripple/app/paths/impl/FlowDebugInfo.h index 62d4841906..f0334d514e 100644 --- a/src/ripple/app/paths/impl/FlowDebugInfo.h +++ b/src/ripple/app/paths/impl/FlowDebugInfo.h @@ -229,21 +229,21 @@ struct FlowDebugInfo } ostr << ']'; }; - auto writeXrpAmtList = [&ostr, &write_list]( + auto writeXrpAmtList = [&write_list]( std::vector 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 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 const& vals, char delim=';') { auto get_val = []( size_t const& v) -> size_t const& { return v; }; diff --git a/src/test/app/Flow_test.cpp b/src/test/app/Flow_test.cpp index 5b04ec087d..521addc5c3 100644 --- a/src/test/app/Flow_test.cpp +++ b/src/test/app/Flow_test.cpp @@ -783,7 +783,7 @@ struct Flow_test : public beast::unit_test::suite { std::vector> result; forEachItem (*env.current (), account, - [&env, &result](std::shared_ptr const& sle) + [&result](std::shared_ptr const& sle) { if (sle->getType() == ltOFFER) result.push_back (sle); diff --git a/src/test/app/Offer_test.cpp b/src/test/app/Offer_test.cpp index 861a9baa54..db66854098 100644 --- a/src/test/app/Offer_test.cpp +++ b/src/test/app/Offer_test.cpp @@ -569,7 +569,7 @@ public: { std::vector> result; forEachItem (*env.current (), account, - [&env, &result](std::shared_ptr const& sle) + [&result](std::shared_ptr const& sle) { if (sle->getType() == ltOFFER) result.push_back (sle); diff --git a/src/test/protocol/STTx_test.cpp b/src/test/protocol/STTx_test.cpp index 4e7ad6a6cf..54795b39a9 100644 --- a/src/test/protocol/STTx_test.cpp +++ b/src/test/protocol/STTx_test.cpp @@ -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.