clang-tidy modernize

This commit is contained in:
2025-07-20 14:10:54 +02:00
parent 1f0184fde2
commit f5245273a1
22 changed files with 514 additions and 481 deletions

View File

@@ -11,6 +11,7 @@
#include <cstdlib> // Para exit, EXIT_FAILURE, size_t, srand
#include <ctime> // Para time
#include <memory> // Para make_unique, unique_ptr
#include <span>
#include <stdexcept> // Para runtime_error
#include <string> // Para operator+, basic_string, allocator
#include <vector> // Para vector
@@ -41,7 +42,7 @@
#endif
// Constructor
Director::Director(int argc, const char *argv[]) {
Director::Director(int argc, std::span<char *> argv) {
#ifdef RECORDING
Section::name = Section::Name::GAME;
Section::options = Section::Options::GAME_PLAY_1P;
@@ -434,7 +435,7 @@ void Director::setFileList() {
}
// Comprueba los parametros del programa
void Director::checkProgramArguments(int argc, const char *argv[]) {
void Director::checkProgramArguments(int argc, std::span<char *> argv) {
// Establece la ruta del programa
executable_path_ = getPath(argv[0]);