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