diff options
| author | Lioncash <mai.iam2048@gmail.com> | 2023-12-12 13:31:18 -0500 |
|---|---|---|
| committer | Lioncash <mai.iam2048@gmail.com> | 2023-12-12 13:31:18 -0500 |
| commit | 196f8e51230f7e7ee02a4eec1f9671786a93e7d7 (patch) | |
| tree | 6333827bc664a89a9d8eba5d17ce937096cbd3f4 /Source/Core/InputCommon/ControllerInterface | |
| parent | 888a8692b49d393803a832782b1b74ae0621c952 (diff) | |
MappingCommon: Make use of std::erase_if
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/MappingCommon.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/MappingCommon.cpp b/Source/Core/InputCommon/ControllerInterface/MappingCommon.cpp index 7b21cf78e0..56bab1a981 100644 --- a/Source/Core/InputCommon/ControllerInterface/MappingCommon.cpp +++ b/Source/Core/InputCommon/ControllerInterface/MappingCommon.cpp @@ -144,8 +144,7 @@ void RemoveSpuriousTriggerCombinations( }); }; - detections->erase(std::remove_if(detections->begin(), detections->end(), is_spurious), - detections->end()); + std::erase_if(*detections, is_spurious); } } // namespace ciface::MappingCommon |
