From 196f8e51230f7e7ee02a4eec1f9671786a93e7d7 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 12 Dec 2023 13:31:18 -0500 Subject: [PATCH] MappingCommon: Make use of std::erase_if --- Source/Core/InputCommon/ControllerInterface/MappingCommon.cpp | 3 +-- 1 file changed, 1 insertion(+), 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