summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2018-08-20 18:49:52 -0400
committerGravatar Lioncash2018-08-20 19:48:57 -0400
commit9d8f19d7bf69dd9213c2ced378f8a5e26f3d4d6e (patch)
tree6f6e85715156730928c4ecd9fb58fa0ff967a6a9 /src
parentprofile_manager: Use type aliases for username data, profile data, and user a... (diff)
downloadyuzu-9d8f19d7bf69dd9213c2ced378f8a5e26f3d4d6e.tar.gz
yuzu-9d8f19d7bf69dd9213c2ced378f8a5e26f3d4d6e.tar.xz
yuzu-9d8f19d7bf69dd9213c2ced378f8a5e26f3d4d6e.zip
profile_manager: Remove unnecessary memcpy in GetProfileBaseAndData()
Given the source and destination types are the same std::array type, we can simply use regular assignment to perform the same behavior.
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/acc/profile_manager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/acc/profile_manager.cpp b/src/core/hle/service/acc/profile_manager.cpp
index f34f5af97..e0b03d763 100644
--- a/src/core/hle/service/acc/profile_manager.cpp
+++ b/src/core/hle/service/acc/profile_manager.cpp
@@ -207,7 +207,7 @@ UUID ProfileManager::GetLastOpenedUser() const {
207bool ProfileManager::GetProfileBaseAndData(boost::optional<size_t> index, ProfileBase& profile, 207bool ProfileManager::GetProfileBaseAndData(boost::optional<size_t> index, ProfileBase& profile,
208 ProfileData& data) const { 208 ProfileData& data) const {
209 if (GetProfileBase(index, profile)) { 209 if (GetProfileBase(index, profile)) {
210 std::memcpy(data.data(), profiles[index.get()].data.data(), MAX_DATA); 210 data = profiles[index.get()].data;
211 return true; 211 return true;
212 } 212 }
213 return false; 213 return false;