diff options
| author | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-09-28 22:33:13 -0700 |
|---|---|---|
| committer | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-10-10 00:53:48 -0700 |
| commit | 88a1a5b4f2d63b96d47a6fd31a2bab89d50d701e (patch) | |
| tree | bdaa2ad8760f6d71a3ec6ee665d84451643a8a8e /Source/Core/InputCommon/InputProfile.cpp | |
| parent | 728663bdc03dfe20343c45ff36f5fb080b49ffec (diff) | |
Modernize `std::set_intersection` with ranges
Diffstat (limited to 'Source/Core/InputCommon/InputProfile.cpp')
| -rw-r--r-- | Source/Core/InputCommon/InputProfile.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Core/InputCommon/InputProfile.cpp b/Source/Core/InputCommon/InputProfile.cpp index 0d439c48e1..0bb452ac1e 100644 --- a/Source/Core/InputCommon/InputProfile.cpp +++ b/Source/Core/InputCommon/InputProfile.cpp @@ -111,8 +111,7 @@ ProfileCycler::GetMatchingProfilesFromSetting(const std::string& setting, } std::vector<std::string> result; - std::set_intersection(profiles.begin(), profiles.end(), profiles_from_setting.begin(), - profiles_from_setting.end(), std::back_inserter(result)); + std::ranges::set_intersection(profiles, profiles_from_setting, std::back_inserter(result)); return result; } |
