mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-17 08:32:13 +11:00
🐛 nullptr isnt valid
This commit is contained in:
parent
2d8cb3ee28
commit
5a6a4180a0
1 changed files with 4 additions and 4 deletions
|
|
@ -172,7 +172,7 @@ BankResponse Bank::SetBal(const std::string &name, uint32_t amount) noexcept
|
||||||
save_flag = true;
|
save_flag = true;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
return {k200OK, "true"};
|
return {k200OK, "true"}; //may return new balance
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
@ -194,7 +194,7 @@ BankResponse Bank::ImpactBal(const std::string &name, int64_t amount) noexcept
|
||||||
save_flag = true;
|
save_flag = true;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
return {k200OK, "true"};
|
return {k200OK, "true"}; //may return new balance
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
@ -226,7 +226,7 @@ BankResponse Bank::AddUser(const std::string &name, uint32_t init_bal, std::stri
|
||||||
save_flag = true;
|
save_flag = true;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
return {k204NoContent, nullptr};
|
return {k204NoContent, ""};
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
@ -256,7 +256,7 @@ BankResponse Bank::DelUser(const std::string &name) noexcept
|
||||||
save_flag = true;
|
save_flag = true;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
return BankResponse(k204NoContent, nullptr);
|
return BankResponse(k204NoContent, "");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue