summaryrefslogtreecommitdiff
path: root/src/core/hle
diff options
context:
space:
mode:
authorGravatar Lioncash2018-08-20 17:32:23 -0400
committerGravatar Lioncash2018-08-20 19:48:57 -0400
commit1277556c69a29a6479815b16e3e1707f7e53a422 (patch)
treec381cc347ca8a5bc2712ec482148386762995c92 /src/core/hle
parentprofile_manager: Remove unnecessary static (diff)
downloadyuzu-1277556c69a29a6479815b16e3e1707f7e53a422.tar.gz
yuzu-1277556c69a29a6479815b16e3e1707f7e53a422.tar.xz
yuzu-1277556c69a29a6479815b16e3e1707f7e53a422.zip
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.
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/service/acc/profile_manager.cpp2
-rw-r--r--src/core/hle/service/acc/profile_manager.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/acc/profile_manager.cpp b/src/core/hle/service/acc/profile_manager.cpp
index 9440dc555..e1ab0e559 100644
--- a/src/core/hle/service/acc/profile_manager.cpp
+++ b/src/core/hle/service/acc/profile_manager.cpp
@@ -62,7 +62,7 @@ ResultCode ProfileManager::AddUser(ProfileInfo user) {
62 62
63/// Create a new user on the system. If the uuid of the user already exists, the user is not 63/// Create a new user on the system. If the uuid of the user already exists, the user is not
64/// created. 64/// created.
65ResultCode ProfileManager::CreateNewUser(UUID uuid, std::array<u8, 0x20>& username) { 65ResultCode ProfileManager::CreateNewUser(UUID uuid, const std::array<u8, 0x20>& username) {
66 if (user_count == MAX_USERS) { 66 if (user_count == MAX_USERS) {
67 return ERROR_TOO_MANY_USERS; 67 return ERROR_TOO_MANY_USERS;
68 } 68 }
diff --git a/src/core/hle/service/acc/profile_manager.h b/src/core/hle/service/acc/profile_manager.h
index d4a2f4116..49dc3a6e3 100644
--- a/src/core/hle/service/acc/profile_manager.h
+++ b/src/core/hle/service/acc/profile_manager.h
@@ -79,7 +79,7 @@ class ProfileManager {
79public: 79public:
80 ProfileManager(); // TODO(ogniK): Load from system save 80 ProfileManager(); // TODO(ogniK): Load from system save
81 ResultCode AddUser(ProfileInfo user); 81 ResultCode AddUser(ProfileInfo user);
82 ResultCode CreateNewUser(UUID uuid, std::array<u8, 0x20>& username); 82 ResultCode CreateNewUser(UUID uuid, const std::array<u8, 0x20>& username);
83 ResultCode CreateNewUser(UUID uuid, const std::string& username); 83 ResultCode CreateNewUser(UUID uuid, const std::string& username);
84 boost::optional<size_t> GetUserIndex(const UUID& uuid) const; 84 boost::optional<size_t> GetUserIndex(const UUID& uuid) const;
85 boost::optional<size_t> GetUserIndex(ProfileInfo user) const; 85 boost::optional<size_t> GetUserIndex(ProfileInfo user) const;