From 6583d76fe5663fa4789c341a7afb75f3d205fde1 Mon Sep 17 00:00:00 2001 From: Tristan Carel Date: Tue, 26 Sep 2023 14:15:50 +0200 Subject: [PATCH] fixup! SonarSource: fix issues --- src/codegen/codegen_transform_visitor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/codegen/codegen_transform_visitor.cpp b/src/codegen/codegen_transform_visitor.cpp index 339bd088d9..6d95bd7f52 100644 --- a/src/codegen/codegen_transform_visitor.cpp +++ b/src/codegen/codegen_transform_visitor.cpp @@ -21,7 +21,8 @@ void CodegenTransformVisitor::visit_function_block(FunctionBlock& node) { auto table_statements = collect_nodes(node, {AstNodeType::TABLE_STATEMENT}); for (auto t: table_statements) { auto t_ = std::dynamic_pointer_cast(t); - t_->set_table_vars({std::make_shared(std::make_shared(node.get_node_name()))}); + t_->set_table_vars( + {std::make_shared(std::make_shared(node.get_node_name()))}); } } } // namespace nmodl