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

@@ -65,7 +65,7 @@ void toggleShaders() {
}
// Obtiene una fichero a partir de un lang::Code
std::string getLangFile(Lang::Code code) {
auto getLangFile(Lang::Code code) -> std::string {
switch (code) {
case Lang::Code::VALENCIAN:
return Asset::get()->get("ba_BA.json");
@@ -80,7 +80,7 @@ std::string getLangFile(Lang::Code code) {
}
// Obtiene una cadena a partir de un lang::Code
std::string getLangName(Lang::Code code) {
auto getLangName(Lang::Code code) -> std::string {
switch (code) {
case Lang::Code::VALENCIAN:
return " \"ba_BA\"";
@@ -161,7 +161,7 @@ void incWindowSize() {
}
// Comprueba el boton de servicio
bool checkServiceButton() {
auto checkServiceButton() -> bool {
// Teclado
if (Input::get()->checkInput(InputAction::SERVICE, INPUT_DO_NOT_ALLOW_REPEAT, InputDevice::KEYBOARD)) {
toggleServiceMenu();
@@ -181,7 +181,7 @@ bool checkServiceButton() {
}
// Comprueba las entradas del menú de servicio
bool checkServiceInputs() {
auto checkServiceInputs() -> bool {
if (!ServiceMenu::get()->isEnabled())
return false;
@@ -268,7 +268,7 @@ bool checkServiceInputs() {
}
// Comprueba las entradas fuera del menú de servicio
bool checkInputs() {
auto checkInputs() -> bool {
// Teclado
{
// Comprueba el teclado para cambiar entre pantalla completa y ventana
@@ -361,7 +361,7 @@ bool checkInputs() {
}
// Comprueba los inputs que se pueden introducir en cualquier sección del juego
bool check() {
auto check() -> bool {
if (checkServiceButton())
return true;
if (checkServiceInputs())