Fixed template API warning

This commit is contained in:
Bartek Kryza
2023-07-24 19:41:04 +02:00
parent 9df58ca251
commit eded9f4292
2 changed files with 5 additions and 8 deletions

View File

@@ -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<std::string> &template_variables)
const std::string &config_file_path, const std::string &template_name)
{
if (!config.diagram_templates ||
!(config.diagram_templates().find(template_name) !=

View File

@@ -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<std::string> &template_variables);
const std::string &config_file_path, const std::string &template_name);
/**
* Check if diagram output directory exists, if not create it