clang-tidy modernize
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user