diff options
author | bunnei <bunneidev@gmail.com> | 2021-01-17 09:55:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-17 09:55:10 +0100 |
commit | e8401964b4cb617223554e147091f109dc870ba5 (patch) | |
tree | 0e963c000006ca547044bdc628177311fa0dc585 /src/core/hle/service/acc/profile_manager.cpp | |
parent | Merge pull request #5745 from lioncash/documentation (diff) | |
parent | core/cmake: Enforce Wclass-memaccess (diff) | |
download | yuzu-e8401964b4cb617223554e147091f109dc870ba5.tar yuzu-e8401964b4cb617223554e147091f109dc870ba5.tar.gz yuzu-e8401964b4cb617223554e147091f109dc870ba5.tar.bz2 yuzu-e8401964b4cb617223554e147091f109dc870ba5.tar.lz yuzu-e8401964b4cb617223554e147091f109dc870ba5.tar.xz yuzu-e8401964b4cb617223554e147091f109dc870ba5.tar.zst yuzu-e8401964b4cb617223554e147091f109dc870ba5.zip |
Diffstat (limited to 'src/core/hle/service/acc/profile_manager.cpp')
-rw-r--r-- | src/core/hle/service/acc/profile_manager.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/hle/service/acc/profile_manager.cpp b/src/core/hle/service/acc/profile_manager.cpp index 9b829e957..d9865d56f 100644 --- a/src/core/hle/service/acc/profile_manager.cpp +++ b/src/core/hle/service/acc/profile_manager.cpp @@ -227,17 +227,17 @@ void ProfileManager::CloseUser(UUID uuid) { /// Gets all valid user ids on the system UserIDArray ProfileManager::GetAllUsers() const { - UserIDArray output; - std::transform(profiles.begin(), profiles.end(), output.begin(), - [](const ProfileInfo& p) { return p.user_uuid; }); + UserIDArray output{}; + std::ranges::transform(profiles, output.begin(), + [](const ProfileInfo& p) { return p.user_uuid; }); return output; } /// Get all the open users on the system and zero out the rest of the data. This is specifically /// needed for GetOpenUsers and we need to ensure the rest of the output buffer is zero'd out UserIDArray ProfileManager::GetOpenUsers() const { - UserIDArray output; - std::transform(profiles.begin(), profiles.end(), output.begin(), [](const ProfileInfo& p) { + UserIDArray output{}; + std::ranges::transform(profiles, output.begin(), [](const ProfileInfo& p) { if (p.is_open) return p.user_uuid; return UUID{Common::INVALID_UUID}; |