diff options
author | Lioncash <mathew1800@gmail.com> | 2018-08-20 18:49:52 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-08-20 19:48:57 -0400 |
commit | 9d8f19d7bf69dd9213c2ced378f8a5e26f3d4d6e (patch) | |
tree | 6f6e85715156730928c4ecd9fb58fa0ff967a6a9 /src | |
parent | 38cd4e9c6100cb21c5b8a621d1ee204d61b031ca (diff) |
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.cpp | 2 |
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 { bool ProfileManager::GetProfileBaseAndData(boost::optional<size_t> index, ProfileBase& profile, ProfileData& data) const { if (GetProfileBase(index, profile)) { - std::memcpy(data.data(), profiles[index.get()].data.data(), MAX_DATA); + data = profiles[index.get()].data; return true; } return false; |