Browse Source

[cpp] use terminate_line instead of simply outputting ;\n after class constructor block

Dan Korostelev 10 years ago
parent
commit
e677d97182
1 changed files with 2 additions and 2 deletions
  1. 2 2
      gencpp.ml

+ 2 - 2
gencpp.ml

@@ -3665,10 +3665,10 @@ let generate_class_files common_ctx member_types super_deps constructor_deps cla
                   if (has_default_values function_def.tf_args) then begin
                      generate_default_values ctx function_def.tf_args "__o_";
                      gen_expression ctx false (mk_block function_def.tf_expr);
-                     output_cpp ";\n";
+                     cpp_file#terminate_line;
                   end else begin
                      gen_expression ctx false (mk_block function_def.tf_expr);
-                     output_cpp ";\n";
+                     cpp_file#terminate_line;
                      (*gen_expression (new_context common_ctx cpp_file debug ) false function_def.tf_expr;*)
                   end;
                   ctx.ctx_debug_level <- debug;