mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-19 01:22:14 +11:00
converted forward calls to move
This commit is contained in:
parent
56fe9d6152
commit
01bcd2d947
1 changed files with 2 additions and 2 deletions
|
|
@ -25,7 +25,7 @@ public:
|
||||||
{
|
{
|
||||||
std::shared_lock<std::shared_mutex> lock{save_lock};
|
std::shared_lock<std::shared_mutex> lock{save_lock};
|
||||||
return users.try_emplace_l(
|
return users.try_emplace_l(
|
||||||
name, [](User &) {}, std::forward<std::string>(init_pass));
|
name, [](User &) {}, std::move(init_pass));
|
||||||
}
|
}
|
||||||
bool AdminAddUser(const std::string &attempt, std::string &&name, uint_fast32_t init_bal, std::string &&init_pass)
|
bool AdminAddUser(const std::string &attempt, std::string &&name, uint_fast32_t init_bal, std::string &&init_pass)
|
||||||
{
|
{
|
||||||
|
|
@ -34,7 +34,7 @@ public:
|
||||||
{
|
{
|
||||||
std::shared_lock<std::shared_mutex> lock{save_lock};
|
std::shared_lock<std::shared_mutex> lock{save_lock};
|
||||||
state = users.try_emplace_l(
|
state = users.try_emplace_l(
|
||||||
name, [](User &) {}, init_bal, std::forward<std::string>(init_pass));
|
name, [](User &) {}, init_bal, std::move(init_pass));
|
||||||
}
|
}
|
||||||
return state;
|
return state;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue