浏览代码

bugfix : keep current function parameter names (in case they were changed in subclasses)

Nicolas Cannasse 15 年之前
父节点
当前提交
87f72f2139
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gencpp.ml

+ 1 - 1
gencpp.ml

@@ -1568,7 +1568,7 @@ let rec inherit_temlpate_types class_def name is_static in_def =
 					| Some { eexpr = TFunction parent_def } ->
 						 inherit_temlpate_types super name is_static 
 							{
-								tf_args = parent_def.tf_args;
+								tf_args = List.map2 (fun (n,_,_) (_,c,t) -> n,c,t) in_def.tf_args parent_def.tf_args;
 								tf_type = parent_def.tf_type;
 								tf_expr = in_def.tf_expr;
 							}