summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface
diff options
context:
space:
mode:
authorLioncash <mai.iam2048@gmail.com>2023-12-12 13:31:18 -0500
committerLioncash <mai.iam2048@gmail.com>2023-12-12 13:31:18 -0500
commit196f8e51230f7e7ee02a4eec1f9671786a93e7d7 (patch)
tree6333827bc664a89a9d8eba5d17ce937096cbd3f4 /Source/Core/InputCommon/ControllerInterface
parent888a8692b49d393803a832782b1b74ae0621c952 (diff)
MappingCommon: Make use of std::erase_if
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface')
-rw-r--r--Source/Core/InputCommon/ControllerInterface/MappingCommon.cpp3
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