clang-tidy modernize
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
#include <utility> // Para move
|
||||
|
||||
// Devuelve un vector con los puntos que conforman la ruta
|
||||
std::vector<SDL_FPoint> createPath(float start, float end, PathType type, float fixed_pos, int steps, const std::function<double(double)> &easing_function) {
|
||||
auto createPath(float start, float end, PathType type, float fixed_pos, int steps, const std::function<double(double)> &easing_function) -> std::vector<SDL_FPoint> {
|
||||
std::vector<SDL_FPoint> v;
|
||||
v.reserve(steps);
|
||||
|
||||
@@ -141,4 +141,4 @@ void PathSprite::goToNextPathOrDie() {
|
||||
}
|
||||
|
||||
// Indica si ha terminado todos los recorridos
|
||||
bool PathSprite::hasFinished() { return has_finished_; }
|
||||
auto PathSprite::hasFinished() -> bool { return has_finished_; }
|
||||
Reference in New Issue
Block a user