clang-tidy modernize
This commit is contained in:
@@ -279,7 +279,7 @@ void Instructions::run() {
|
||||
}
|
||||
|
||||
// Método para inicializar las líneas
|
||||
std::vector<Line> Instructions::initializeLines(int height) {
|
||||
auto Instructions::initializeLines(int height) -> std::vector<Line> {
|
||||
std::vector<Line> lines;
|
||||
for (int y = 0; y < height; y++) {
|
||||
int direction = (y % 2 == 0) ? -1 : 1; // Pares a la izquierda, impares a la derecha
|
||||
@@ -289,7 +289,7 @@ std::vector<Line> Instructions::initializeLines(int height) {
|
||||
}
|
||||
|
||||
// Método para mover las líneas con suavizado
|
||||
bool Instructions::moveLines(std::vector<Line> &lines, int width, float duration, Uint32 start_delay) {
|
||||
auto Instructions::moveLines(std::vector<Line> &lines, int width, float duration, Uint32 start_delay) -> bool {
|
||||
Uint32 current_time = SDL_GetTicks();
|
||||
bool all_lines_off_screen = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user