Skip to content

Commit

Permalink
Fix arg name clash
Browse files Browse the repository at this point in the history
  • Loading branch information
RedBrumbler committed Oct 3, 2023
1 parent 7c00fe8 commit e500cba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/generate/cs_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1661,9 +1661,9 @@ pub trait CSType: Sized {
let cpp_constructor_impl = CppMethodImpl {
body: vec![
Arc::new(CppLine::make(format!(
"{ty_full_cpp_name} o{{{allocate_call}}};"
"{ty_full_cpp_name} _cordl_instantiated_o{{{allocate_call}}};"
))),
Arc::new(CppLine::make("return o;".into())),
Arc::new(CppLine::make("return _cordl_instantiated_o;".into())),
],

declaring_cpp_full_name: cpp_type.cpp_name_components.combine_all(true),
Expand Down

0 comments on commit e500cba

Please sign in to comment.