mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-09 16:59:58 +00:00
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.
This commit is contained in:
parent
38cd4e9c61
commit
9d8f19d7bf
1 changed files with 1 additions and 1 deletions
|
@ -207,7 +207,7 @@ UUID ProfileManager::GetLastOpenedUser() const {
|
||||||
bool ProfileManager::GetProfileBaseAndData(boost::optional<size_t> index, ProfileBase& profile,
|
bool ProfileManager::GetProfileBaseAndData(boost::optional<size_t> index, ProfileBase& profile,
|
||||||
ProfileData& data) const {
|
ProfileData& data) const {
|
||||||
if (GetProfileBase(index, profile)) {
|
if (GetProfileBase(index, profile)) {
|
||||||
std::memcpy(data.data(), profiles[index.get()].data.data(), MAX_DATA);
|
data = profiles[index.get()].data;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue