Remove unused capture in lambdas

This commit is contained in:
Nikolaos D. Bougalis
2018-03-28 17:37:00 -07:00
parent b7692b7bc1
commit cebb9c6604

View File

@@ -68,7 +68,7 @@ public:
{ {
SerialIter sit{payload1, sizeof(payload1)}; SerialIter sit{payload1, sizeof(payload1)};
auto stx = std::make_shared<ripple::STValidation>(sit, auto stx = std::make_shared<ripple::STValidation>(sit,
[this](PublicKey const& pk) { [](PublicKey const& pk) {
return calcNodeID(pk); return calcNodeID(pk);
}, false); }, false);
fail("An exception should have been thrown"); fail("An exception should have been thrown");
@@ -82,7 +82,7 @@ public:
{ {
SerialIter sit{payload2, sizeof(payload2)}; SerialIter sit{payload2, sizeof(payload2)};
auto stx = std::make_shared<ripple::STValidation>(sit, auto stx = std::make_shared<ripple::STValidation>(sit,
[this](PublicKey const& pk) { [](PublicKey const& pk) {
return calcNodeID(pk); return calcNodeID(pk);
}, false); }, false);
fail("An exception should have been thrown"); fail("An exception should have been thrown");
@@ -96,7 +96,7 @@ public:
{ {
SerialIter sit{payload3, sizeof(payload3)}; SerialIter sit{payload3, sizeof(payload3)};
auto stx = std::make_shared<ripple::STValidation>(sit, auto stx = std::make_shared<ripple::STValidation>(sit,
[this](PublicKey const& pk) { [](PublicKey const& pk) {
return calcNodeID(pk); return calcNodeID(pk);
}, false); }, false);
fail("An exception should have been thrown"); fail("An exception should have been thrown");