Use C++14 lambda declaration.

This commit is contained in:
Edward Hennis
2015-10-07 11:33:41 -04:00
committed by Nik Bougalis
parent 6464d1abc1
commit d0770cdb1a

View File

@@ -1078,10 +1078,10 @@ PeerImp::onMessage (std::shared_ptr <protocol::TMTransaction> const& m)
p_journal_.trace << "No new transactions until synchronized";
else
{
std::weak_ptr<PeerImp> weak = shared_from_this();
app_.getJobQueue ().addJob (
jtTRANSACTION, "recvTransaction->checkTransaction",
[weak, flags, checkSignature, stx] (Job&) {
[weak = std::weak_ptr<PeerImp>(shared_from_this()),
flags, checkSignature, stx] (Job&) {
if (auto peer = weak.lock())
peer->checkTransaction(flags,
checkSignature, stx);