refactor: tornar std::ranges::{any,all,find}_of a bucles for explícits

This commit is contained in:
2026-05-26 13:45:54 +02:00
parent 0dcecf9a3c
commit 97d3749269
5 changed files with 43 additions and 22 deletions
+6 -4
View File
@@ -3,7 +3,6 @@
#include "core/input/define_inputs.hpp"
#include <algorithm>
#include <format>
#include <string>
#include <vector>
@@ -154,9 +153,12 @@ namespace System {
}
auto DefineInputs::isInUse(int code) const -> bool {
return std::ranges::any_of(sequence_, [code](const Step& s) {
return s.captured == code;
});
for (const auto& s : sequence_) {
if (s.captured == code) {
return true;
}
}
return false;
}
void DefineInputs::captureAndAdvance(int code) {