From 9d8f19d7bf69dd9213c2ced378f8a5e26f3d4d6e Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 20 Aug 2018 18:49:52 -0400 Subject: [PATCH] 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. --- src/core/hle/service/acc/profile_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 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;