From fced185ad97a57aefe8ac31726836745112ec926 Mon Sep 17 00:00:00 2001 From: Gammasoft Date: Thu, 15 Aug 2024 22:24:59 +0200 Subject: [PATCH] Fix generated xtd console code --- tools/xtdc/src/xtd_console_project.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/xtdc/src/xtd_console_project.h b/tools/xtdc/src/xtd_console_project.h index b13488267efb..842fd5a817ee 100644 --- a/tools/xtdc/src/xtd_console_project.h +++ b/tools/xtdc/src/xtd_console_project.h @@ -88,8 +88,8 @@ namespace xtdc_command { "/// @file", "/// @brief Contains program class.", "#pragma once", + "#include ", "#include ", - "#include ", "", "/// @brief Represents the namespace that contains application objects.", xtd::string::format("namespace {} {{", name), @@ -97,7 +97,7 @@ namespace xtdc_command { " class program {", " public:", " /// @brief The main entry point for the application.", - " static auto main(const std::vector& args) -> void;", + " static auto main(const xtd::collections::generic::list& args) -> void;", " };", "}", }; @@ -110,9 +110,9 @@ namespace xtdc_command { "#include \"program.h\"", "#include ", "", + xtd::string::format("using namespace {};", name), "using namespace xtd;", "using namespace xtd::collections::generic;", - xtd::string::format("using namespace {};", name), "", "auto program::main(const list& args) -> void {", " console::write_line(\"Hello, World!\");",