summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface
diff options
context:
space:
mode:
authorTilka <tilkax@gmail.com>2023-12-12 20:54:52 +0000
committerGitHub <noreply@github.com>2023-12-12 20:54:52 +0000
commit8cbb2c2e44064e730539945f22df790fd79634de (patch)
tree821b74af294b843d7040c266d81a56720d9d333e /Source/Core/InputCommon/ControllerInterface
parent99959944eb285d28d05dfceb50cefd643e3a3df0 (diff)
parent9aea481e5915b9c615aa9bb40f1e45d4cb264e72 (diff)
Merge pull request #12399 from lioncash/erasing
General: Make use of std::erase_if/std::erase where applicable
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