diff options
| author | JMC47 <JMC4789@gmail.com> | 2024-12-20 12:50:19 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-20 12:50:19 -0500 |
| commit | 1ba8541da95128c784d03f9fe5cd53a227de1f89 (patch) | |
| tree | f0f043743e185c6c86a80aa481db83821bc696f8 /Source/Core/InputCommon | |
| parent | ac0d6cbaaaaaac9c371e16b156daa8fa9ce6a208 (diff) | |
| parent | 3d0d03b871d7ea2cd668abfbcb3ba1ecf0e77ceb (diff) | |
Merge pull request #13091 from mitaclaw/ranges-modernization-2-returns
Ranges Algorithms Modernization - Return
Diffstat (limited to 'Source/Core/InputCommon')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/MappingCommon.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/MappingCommon.cpp b/Source/Core/InputCommon/ControllerInterface/MappingCommon.cpp index 1877e8294c..b50621bc92 100644 --- a/Source/Core/InputCommon/ControllerInterface/MappingCommon.cpp +++ b/Source/Core/InputCommon/ControllerInterface/MappingCommon.cpp @@ -129,7 +129,8 @@ BuildExpression(const std::vector<ciface::Core::DeviceContainer::InputDetection> // Remove duplicates std::ranges::sort(alternations); - alternations.erase(std::unique(alternations.begin(), alternations.end()), alternations.end()); + const auto unique_result = std::ranges::unique(alternations); + alternations.erase(unique_result.begin(), unique_result.end()); return fmt::to_string(fmt::join(alternations, "|")); } |
