Procházet zdrojové kódy

[cpp] Use remap name when looking for member type information. Fixes error with package names of 'system'.

Hugh před 9 roky
rodič
revize
cf3485da14
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      gencpp.ml

+ 1 - 1
gencpp.ml

@@ -1400,7 +1400,7 @@ and is_dynamic_member_return_in_cpp ctx field_object field =
    if (is_internal_member member) then false else
    match field_object.eexpr with
    | TTypeExpr t ->
-         let full_name = "::" ^ (join_class_path (t_path t) "::" ) ^ "." ^ member in
+         let full_name = "::" ^ (join_class_path_remap (t_path t) "::" ) ^ "." ^ member in
          ctx.ctx_dbgout ("/*static:"^ full_name^"*/");
          ( try ( let mem_type = (Hashtbl.find ctx.ctx_class_member_types full_name) in
              mem_type="Dynamic" || mem_type="cpp::ArrayBase" || mem_type="cpp::VirtualArray" )