mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-17 00:22:14 +11:00
🐎 removed lambda args
This commit is contained in:
parent
b64e562235
commit
dfdeba08bd
1 changed files with 2 additions and 2 deletions
|
|
@ -77,7 +77,7 @@ BankResponse Bank::SendFunds(const std::string &a_name, const std::string &b_nam
|
|||
{
|
||||
Transaction temp(a_name, b_name, amount);
|
||||
std::shared_lock<std::shared_mutex> lock{send_funds_l};
|
||||
users.modify_if(a_name, [this, &temp, &state, amount](User &a) {
|
||||
users.modify_if(a_name, [&temp, &state, amount](User &a) {
|
||||
//if A can afford it
|
||||
if (a.balance < amount)
|
||||
{
|
||||
|
|
@ -92,7 +92,7 @@ BankResponse Bank::SendFunds(const std::string &a_name, const std::string &b_nam
|
|||
});
|
||||
if (state.first == k200OK)
|
||||
{
|
||||
users.modify_if(b_name, [&a_name, &b_name, &temp, amount](User &b) {
|
||||
users.modify_if(b_name, [&temp, amount](User &b) {
|
||||
b.balance += amount;
|
||||
b.log.AddTrans(std::move(temp));
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue