passant linters a vore si trobe variables sense inicialitzar

This commit is contained in:
2025-08-17 00:23:59 +02:00
parent ada5025c65
commit 327987447d
55 changed files with 516 additions and 474 deletions

View File

@@ -1,5 +1,7 @@
#include "ui/service_menu.h"
#include <utility>
#include "audio.h" // Para Audio
#include "define_buttons.h" // Para DefineButtons
#include "difficulty.h" // Para getCodeFromName, getNameFromCode
@@ -596,7 +598,7 @@ auto ServiceMenu::checkInput() -> bool {
}
// Mandos
for (auto gamepad : input_->getGamepads()) {
for (const auto &gamepad : input_->getGamepads()) {
for (const auto &[action, func] : ACTIONS) {
if (input_->checkAction(action, Input::DO_NOT_ALLOW_REPEAT, Input::DO_NOT_CHECK_KEYBOARD, gamepad)) {
func();
@@ -629,7 +631,7 @@ void ServiceMenu::refresh() {
// Método para registrar callback
void ServiceMenu::setStateChangeCallback(StateChangeCallback callback) {
state_change_callback_ = callback;
state_change_callback_ = std::move(callback);
}
// Método interno que cambia estado y notifica