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

@@ -2,6 +2,7 @@
#include <memory> // Para unique_ptr, shared_ptr
#include <string> // Para string
#include <utility>
#include <vector> // Para vector
#include "animated_sprite.h" // Para AnimatedSprite
@@ -15,7 +16,7 @@ struct ExplosionTexture {
std::vector<std::string> animation; // Animación para la textura
ExplosionTexture(int sz, std::shared_ptr<Texture> tex, const std::vector<std::string> &anim)
: size(sz), texture(tex), animation(anim) {}
: size(sz), texture(std::move(tex)), animation(anim) {}
};
// Clase Explosions
@@ -48,5 +49,5 @@ class Explosions {
void freeExplosions();
// Busca una textura a partir del tamaño
int getIndexBySize(int size);
auto getIndexBySize(int size) -> int;
};