UserDaoSqlite: Remove redundant std::move
Šī revīzija ir iekļauta:
vecāks
828d827c3d
revīzija
aadb623bf7
@ -48,7 +48,7 @@ std::optional<User> UserDaoSqlite::find(std::string username)
|
|||||||
stmt >> std::tie(user.login, user.password, user.salt, perms, user.enabled);
|
stmt >> std::tie(user.login, user.password, user.salt, perms, user.enabled);
|
||||||
user.permissions = Permissions{perms};
|
user.permissions = Permissions{perms};
|
||||||
|
|
||||||
return std::move(user);
|
return user;
|
||||||
}
|
}
|
||||||
catch(const sqlite::errors::no_rows &e)
|
catch(const sqlite::errors::no_rows &e)
|
||||||
{
|
{
|
||||||
@ -71,7 +71,7 @@ std::optional<User> UserDaoSqlite::find(int id)
|
|||||||
stmt >> std::tie(user.login, user.password, user.salt, perms, user.enabled);
|
stmt >> std::tie(user.login, user.password, user.salt, perms, user.enabled);
|
||||||
user.permissions = Permissions{perms};
|
user.permissions = Permissions{perms};
|
||||||
|
|
||||||
return std::move(user);
|
return user;
|
||||||
}
|
}
|
||||||
catch(const sqlite::errors::no_rows &e)
|
catch(const sqlite::errors::no_rows &e)
|
||||||
{
|
{
|
||||||
|
Notiek ielāde…
Atsaukties uz šo jaunā problēmā
Block a user