Skip to content

Commit

Permalink
add const
Browse files Browse the repository at this point in the history
Signed-off-by: Laurynas Jagutis <[email protected]>
  • Loading branch information
Laurynas-Jagutis committed Oct 2, 2024
1 parent bce8295 commit e613118
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
inline power_grid_model::ConstDataset
create_const_dataset_from_container(const power_grid_model::Container<power_grid_model::Node>& container,
power_grid_model::meta_data::MetaData const& meta_data) {
std::string_view dataset_name = "empty_dataset";
std::string_view const dataset_name = "empty_dataset";
power_grid_model::ConstDataset const_dataset{false, 1, dataset_name, meta_data};
return const_dataset;
}
Expand Down Expand Up @@ -76,7 +76,7 @@ inline void PgmVnfConverter::parse_vnf_file() {
}

inline std::string PgmVnfConverter::convert_input() {
std::vector<power_grid_model::Node> nodes = convert_node_input();
std::vector<power_grid_model::Node> const nodes = convert_node_input();
convert_line_input();
convert_sources_input();
convert_sym_loads_input();
Expand All @@ -91,11 +91,11 @@ inline std::string PgmVnfConverter::convert_input() {
container.emplace<power_grid_model::Node>(node.id(), node);
}

power_grid_model::meta_data::MetaData meta_data;
power_grid_model::meta_data::MetaData const meta_data;

power_grid_model::ConstDataset const_dataset = create_const_dataset_from_container(container, meta_data);

std::string serialized_pgm_data = get_serialized_data(const_dataset);
std::string const serialized_pgm_data = get_serialized_data(const_dataset);

// 1. our vnf importer it directly understands the vnf format
// 2. convert vnf like dataset to internal types (take raw data and convert it to pgm component container)
Expand Down

0 comments on commit e613118

Please sign in to comment.