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

@@ -23,7 +23,7 @@ void Explosions::render() {
// Añade texturas al objeto
void Explosions::addTexture(int size, std::shared_ptr<Texture> texture, const std::vector<std::string> &animation) {
textures_.emplace_back(ExplosionTexture(size, texture, animation));
textures_.emplace_back(size, texture, animation);
}
// Añade una explosión
@@ -45,7 +45,7 @@ void Explosions::freeExplosions() {
}
// Busca una textura a partir del tamaño
int Explosions::getIndexBySize(int size) {
auto Explosions::getIndexBySize(int size) -> int {
for (int i = 0; i < (int)textures_.size(); ++i) {
if (size == textures_[i].size) {
return i;