diff options
author | Lioncash <mathew1800@gmail.com> | 2018-08-20 23:36:41 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-08-21 01:48:57 +0200 |
commit | f9a26d468c2388269eb63c3baf6c35762c594932 (patch) | |
tree | dc2cae3d98b0aefab323c4f64f13ae82e5da7629 /src/core/hle/service/acc/profile_manager.cpp | |
parent | profile_manager: Make array parameter to CreateNewUser a const reference (diff) | |
download | yuzu-f9a26d468c2388269eb63c3baf6c35762c594932.tar yuzu-f9a26d468c2388269eb63c3baf6c35762c594932.tar.gz yuzu-f9a26d468c2388269eb63c3baf6c35762c594932.tar.bz2 yuzu-f9a26d468c2388269eb63c3baf6c35762c594932.tar.lz yuzu-f9a26d468c2388269eb63c3baf6c35762c594932.tar.xz yuzu-f9a26d468c2388269eb63c3baf6c35762c594932.tar.zst yuzu-f9a26d468c2388269eb63c3baf6c35762c594932.zip |
Diffstat (limited to 'src/core/hle/service/acc/profile_manager.cpp')
-rw-r--r-- | src/core/hle/service/acc/profile_manager.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/service/acc/profile_manager.cpp b/src/core/hle/service/acc/profile_manager.cpp index e1ab0e559..beba92f64 100644 --- a/src/core/hle/service/acc/profile_manager.cpp +++ b/src/core/hle/service/acc/profile_manager.cpp @@ -53,7 +53,7 @@ bool ProfileManager::RemoveProfileAtIndex(size_t index) { } /// Helper function to register a user to the system -ResultCode ProfileManager::AddUser(ProfileInfo user) { +ResultCode ProfileManager::AddUser(const ProfileInfo& user) { if (AddToProfiles(user) == boost::none) { return ERROR_TOO_MANY_USERS; } @@ -112,7 +112,7 @@ boost::optional<size_t> ProfileManager::GetUserIndex(const UUID& uuid) const { } /// Returns a users profile index based on their profile -boost::optional<size_t> ProfileManager::GetUserIndex(ProfileInfo user) const { +boost::optional<size_t> ProfileManager::GetUserIndex(const ProfileInfo& user) const { return GetUserIndex(user.user_uuid); } @@ -135,7 +135,7 @@ bool ProfileManager::GetProfileBase(UUID uuid, ProfileBase& profile) const { } /// Returns the data structure used by the switch when GetProfileBase is called on acc:* -bool ProfileManager::GetProfileBase(ProfileInfo user, ProfileBase& profile) const { +bool ProfileManager::GetProfileBase(const ProfileInfo& user, ProfileBase& profile) const { return GetProfileBase(user.user_uuid, profile); } @@ -221,7 +221,7 @@ bool ProfileManager::GetProfileBaseAndData(UUID uuid, ProfileBase& profile, } /// Return the users profile base and the unknown arbitary data. -bool ProfileManager::GetProfileBaseAndData(ProfileInfo user, ProfileBase& profile, +bool ProfileManager::GetProfileBaseAndData(const ProfileInfo& user, ProfileBase& profile, std::array<u8, MAX_DATA>& data) const { return GetProfileBaseAndData(user.user_uuid, profile, data); } |