Skip to content
Snippets Groups Projects
Commit 9d8f19d7 authored by Lioncash's avatar Lioncash
Browse files

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.
parent 38cd4e9c
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment