mirror of
https://github.com/yuzu-emu/yuzu-mainline.git
synced 2024-12-12 21:34:27 +01:00
profile_manager: Make array parameter to CreateNewUser a const reference
This doesn't modify the passed in array, so this can be a const reference.
This commit is contained in:
parent
dfdf4a46fe
commit
1277556c69
@ -62,7 +62,7 @@ ResultCode ProfileManager::AddUser(ProfileInfo user) {
|
||||
|
||||
/// Create a new user on the system. If the uuid of the user already exists, the user is not
|
||||
/// created.
|
||||
ResultCode ProfileManager::CreateNewUser(UUID uuid, std::array<u8, 0x20>& username) {
|
||||
ResultCode ProfileManager::CreateNewUser(UUID uuid, const std::array<u8, 0x20>& username) {
|
||||
if (user_count == MAX_USERS) {
|
||||
return ERROR_TOO_MANY_USERS;
|
||||
}
|
||||
|
@ -79,7 +79,7 @@ class ProfileManager {
|
||||
public:
|
||||
ProfileManager(); // TODO(ogniK): Load from system save
|
||||
ResultCode AddUser(ProfileInfo user);
|
||||
ResultCode CreateNewUser(UUID uuid, std::array<u8, 0x20>& username);
|
||||
ResultCode CreateNewUser(UUID uuid, const std::array<u8, 0x20>& username);
|
||||
ResultCode CreateNewUser(UUID uuid, const std::string& username);
|
||||
boost::optional<size_t> GetUserIndex(const UUID& uuid) const;
|
||||
boost::optional<size_t> GetUserIndex(ProfileInfo user) const;
|
||||
|
Loading…
Reference in New Issue
Block a user