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