clang-tidy modernize

This commit is contained in:
2025-07-20 12:51:24 +02:00
parent bfda842d3c
commit 1f0184fde2
74 changed files with 658 additions and 665 deletions

View File

@@ -73,7 +73,7 @@ void DefineButtons::checkEvents(const SDL_Event &event) {
}
// Habilita el objeto
bool DefineButtons::enable(int index) {
auto DefineButtons::enable(int index) -> bool {
if (index < input_->getNumControllers()) {
enabled_ = true;
finished_ = false;
@@ -87,7 +87,7 @@ bool DefineButtons::enable(int index) {
}
// Comprueba si está habilitado
bool DefineButtons::isEnabled() const { return enabled_; }
auto DefineButtons::isEnabled() const -> bool { return enabled_; }
// Incrementa el indice de los botones
void DefineButtons::incIndexButton() {
@@ -109,7 +109,7 @@ void DefineButtons::saveBindingsToOptions() {
}
// Comprueba que un botón no esté ya asignado
bool DefineButtons::checkButtonNotInUse(SDL_GamepadButton button) {
auto DefineButtons::checkButtonNotInUse(SDL_GamepadButton button) -> bool {
for (const auto &b : buttons_) {
if (b.button == button) {
return false;