diff options
| author | 2018-08-20 17:16:23 -0400 | |
|---|---|---|
| committer | 2018-08-20 17:18:31 -0400 | |
| commit | 9e9a4bb3a78543f6ada98fa4b16509b11026a6d6 (patch) | |
| tree | d4a3ef2cd417ba0780be18204a3487a175bd7ed9 /src/core | |
| parent | Merge pull request #1104 from Subv/instanced_arrays (diff) | |
| download | yuzu-9e9a4bb3a78543f6ada98fa4b16509b11026a6d6.tar.gz yuzu-9e9a4bb3a78543f6ada98fa4b16509b11026a6d6.tar.xz yuzu-9e9a4bb3a78543f6ada98fa4b16509b11026a6d6.zip | |
profile_manager: Remove unnecessary std::move in AddToProfiles() and CreateNewUser()
Moving a const reference isn't possible, so this just results in a copy
(and given ProfileInfo is composed of trivial types and aggregates, a
move wouldn't really do anything).
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/hle/service/acc/profile_manager.cpp | 4 |
1 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 62c2121fa..fe9921fb6 100644 --- a/src/core/hle/service/acc/profile_manager.cpp +++ b/src/core/hle/service/acc/profile_manager.cpp | |||
| @@ -25,7 +25,7 @@ boost::optional<size_t> ProfileManager::AddToProfiles(const ProfileInfo& user) { | |||
| 25 | if (user_count >= MAX_USERS) { | 25 | if (user_count >= MAX_USERS) { |
| 26 | return boost::none; | 26 | return boost::none; |
| 27 | } | 27 | } |
| 28 | profiles[user_count] = std::move(user); | 28 | profiles[user_count] = user; |
| 29 | return user_count++; | 29 | return user_count++; |
| 30 | } | 30 | } |
| 31 | 31 | ||
| @@ -67,7 +67,7 @@ ResultCode ProfileManager::CreateNewUser(UUID uuid, std::array<u8, 0x20>& userna | |||
| 67 | return ERROR_USER_ALREADY_EXISTS; | 67 | return ERROR_USER_ALREADY_EXISTS; |
| 68 | } | 68 | } |
| 69 | ProfileInfo profile; | 69 | ProfileInfo profile; |
| 70 | profile.user_uuid = std::move(uuid); | 70 | profile.user_uuid = uuid; |
| 71 | profile.username = username; | 71 | profile.username = username; |
| 72 | profile.data = {}; | 72 | profile.data = {}; |
| 73 | profile.creation_time = 0x0; | 73 | profile.creation_time = 0x0; |