From eded9f429299de720ac81eb7dd4967dc7ed4111d Mon Sep 17 00:00:00 2001 From: Bartek Kryza Date: Mon, 24 Jul 2023 19:41:04 +0200 Subject: [PATCH] Fixed template API warning --- src/cli/cli_handler.cc | 5 ++--- src/cli/cli_handler.h | 8 +++----- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/cli/cli_handler.cc b/src/cli/cli_handler.cc index 6f090ab5..0d6a31a9 100644 --- a/src/cli/cli_handler.cc +++ b/src/cli/cli_handler.cc @@ -285,7 +285,7 @@ cli_flow_t cli_handler::handle_post_config_options() if (config_path != "-" && add_diagram_from_template) { return add_config_diagram_from_template( - config_path, add_diagram_from_template.value(), template_variables); + config_path, add_diagram_from_template.value()); } LOG_INFO("Loaded clang-uml config from {}", config_path); @@ -569,8 +569,7 @@ cli_flow_t cli_handler::add_config_diagram( } cli_flow_t cli_handler::add_config_diagram_from_template( - const std::string &config_file_path, const std::string &template_name, - const std::vector &template_variables) + const std::string &config_file_path, const std::string &template_name) { if (!config.diagram_templates || !(config.diagram_templates().find(template_name) != diff --git a/src/cli/cli_handler.h b/src/cli/cli_handler.h index a281b70f..5287dce8 100644 --- a/src/cli/cli_handler.h +++ b/src/cli/cli_handler.h @@ -128,14 +128,12 @@ public: /** * Add diagram based on template * - * @param config_file_path - * @param template_name - * @param template_variables + * @param config_file_path Path to the configuration file + * @param template_name Name of the diagram template * @return Command line handler state */ cli_flow_t add_config_diagram_from_template( - const std::string &config_file_path, const std::string &template_name, - const std::vector &template_variables); + const std::string &config_file_path, const std::string &template_name); /** * Check if diagram output directory exists, if not create it