Skip to content

Commit

Permalink
Capture fewer variables for lamdba
Browse files Browse the repository at this point in the history
  • Loading branch information
abitmore committed Jun 23, 2018
1 parent b66e1ea commit 5e42457
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/chain/db_balance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,11 @@ void database::deposit_cashback(const account_object& acct, share_type amount, b

if( new_vbid.valid() )
{
modify( acct, [&]( account_object& _acct )
modify( acct, [&new_vbid]( account_object& _acct )
{
_acct.cashback_vb = *new_vbid;
} );
modify( acct.statistics( *this ), [&]( account_statistics_object& aso )
modify( acct.statistics( *this ), []( account_statistics_object& aso )
{
aso.has_cashback_vb = true;
} );
Expand Down

0 comments on commit 5e42457

Please sign in to comment.