Fixed template API warning
This commit is contained in:
@@ -285,7 +285,7 @@ cli_flow_t cli_handler::handle_post_config_options()
|
|||||||
|
|
||||||
if (config_path != "-" && add_diagram_from_template) {
|
if (config_path != "-" && add_diagram_from_template) {
|
||||||
return add_config_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);
|
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(
|
cli_flow_t cli_handler::add_config_diagram_from_template(
|
||||||
const std::string &config_file_path, const std::string &template_name,
|
const std::string &config_file_path, const std::string &template_name)
|
||||||
const std::vector<std::string> &template_variables)
|
|
||||||
{
|
{
|
||||||
if (!config.diagram_templates ||
|
if (!config.diagram_templates ||
|
||||||
!(config.diagram_templates().find(template_name) !=
|
!(config.diagram_templates().find(template_name) !=
|
||||||
|
|||||||
@@ -128,14 +128,12 @@ public:
|
|||||||
/**
|
/**
|
||||||
* Add diagram based on template
|
* Add diagram based on template
|
||||||
*
|
*
|
||||||
* @param config_file_path
|
* @param config_file_path Path to the configuration file
|
||||||
* @param template_name
|
* @param template_name Name of the diagram template
|
||||||
* @param template_variables
|
|
||||||
* @return Command line handler state
|
* @return Command line handler state
|
||||||
*/
|
*/
|
||||||
cli_flow_t add_config_diagram_from_template(
|
cli_flow_t add_config_diagram_from_template(
|
||||||
const std::string &config_file_path, const std::string &template_name,
|
const std::string &config_file_path, const std::string &template_name);
|
||||||
const std::vector<std::string> &template_variables);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if diagram output directory exists, if not create it
|
* Check if diagram output directory exists, if not create it
|
||||||
|
|||||||
Reference in New Issue
Block a user