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