neteja cppcheck (105 → 0)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include "core/input/define_buttons.hpp"
|
||||
|
||||
#include <algorithm> // Para __all_of_fn, all_of
|
||||
#include <algorithm> // Para __all_of_fn, all_of, ranges::transform
|
||||
#include <iterator> // Para back_inserter
|
||||
#include <memory> // Para unique_ptr, allocator, shared_ptr, operator==, make_unique
|
||||
|
||||
#include "core/input/input.hpp" // Para Input
|
||||
@@ -16,10 +17,9 @@ DefineButtons::DefineButtons()
|
||||
: input_(Input::get()) {
|
||||
clearButtons();
|
||||
|
||||
auto gamepads = input_->getGamepads();
|
||||
for (const auto& gamepad : gamepads) {
|
||||
controller_names_.emplace_back(Input::getControllerName(gamepad));
|
||||
}
|
||||
const auto gamepads = input_->getGamepads();
|
||||
controller_names_.reserve(gamepads.size());
|
||||
std::ranges::transform(gamepads, std::back_inserter(controller_names_), Input::getControllerName);
|
||||
|
||||
// Crear la ventana de mensaje
|
||||
WindowMessage::Config config(param.service_menu.window_message);
|
||||
|
||||
Reference in New Issue
Block a user