Skip to content

Commit

Permalink
fixup! SonarSource: fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tristan0x committed Sep 26, 2023
1 parent 9e16420 commit 6583d76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/codegen/codegen_transform_visitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<TableStatement>(t);
t_->set_table_vars({std::make_shared<Name>(std::make_shared<String>(node.get_node_name()))});
t_->set_table_vars(
{std::make_shared<Name>(std::make_shared<String>(node.get_node_name()))});
}
}
} // namespace nmodl

0 comments on commit 6583d76

Please sign in to comment.