Browse Source

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

Nicolas Cannasse 15 years ago
parent
commit
87f72f2139
1 changed files with 1 additions and 1 deletions
  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;
 							}