neteja final tidy/cppcheck: const*, static, renames de constants
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
#include <SDL3/SDL.h>
|
||||
|
||||
#include <algorithm> // for any_of
|
||||
#include <algorithm> // for ranges::any_of
|
||||
#include <iostream> // for basic_ostream, operator<<, cout, basi...
|
||||
#include <utility>
|
||||
|
||||
@@ -164,7 +164,7 @@ auto Input::checkAnyInput(int device, int index) -> bool {
|
||||
if (device == INPUT_USE_KEYBOARD || device == INPUT_USE_ANY) {
|
||||
const bool *key_states = SDL_GetKeyboardState(nullptr);
|
||||
|
||||
if (std::any_of(key_bindings_.begin(), key_bindings_.end(),
|
||||
if (std::ranges::any_of(key_bindings_,
|
||||
[key_states](const auto &key_binding) { return key_states[key_binding.scancode]; })) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user