Skip to content

Commit

Permalink
don't use already mangled name when generating the getter name in ref…
Browse files Browse the repository at this point in the history
…lection
  • Loading branch information
Aidan63 committed Nov 17, 2024
1 parent 63eb006 commit ba5a228
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generators/cpp/gen/cppGenClassImplementation.ml
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ let generate_managed_class base_ctx tcpp_class =
match var.tcv_field.cf_kind with
| Var { v_read = AccCall } ->
let prop_check = checkPropCall var.tcv_field in
let getter = Printf.sprintf "get_%s()" var.tcv_name |> get_wrapper var.tcv_field in
let getter = Printf.sprintf "get_%s()" var.tcv_field.cf_name |> get_wrapper var.tcv_field in

(var.tcv_field.cf_name, String.length var.tcv_field.cf_name, get_printer prop_check getter variable) :: acc
| _ ->
Expand Down

0 comments on commit ba5a228

Please sign in to comment.