~ubuntu-branches/ubuntu/quantal/vala/quantal

« back to all changes in this revision

Viewing changes to codegen/valaccodemethodcallmodule.vala

  • Committer: Bazaar Package Importer
  • Author(s): Michael Terry
  • Date: 2011-01-18 09:51:15 UTC
  • mfrom: (1.5.14 upstream)
  • Revision ID: james.westby@ubuntu.com-20110118095115-r2jr7c63lr0jzj0y
Tags: 0.11.4-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
424
424
                                                                set_delegate_target (arg, get_variable_cexpression (temp_var.name));
425
425
                                                                carg_map.set (get_param_pos (param.cdelegate_target_parameter_position), new CCodeUnaryExpression (CCodeUnaryOperator.ADDRESS_OF, get_delegate_target (arg)));
426
426
                                                                if (deleg_type.value_owned) {
427
 
                                                                        temp_var = get_temp_variable (new DelegateType ((Delegate) context.root.scope.lookup ("GLib").scope.lookup ("DestroyNotify")));
 
427
                                                                        temp_var = get_temp_variable (gdestroynotify_type);
428
428
                                                                        emit_temp_var (temp_var);
429
429
                                                                        set_delegate_target_destroy_notify (arg, get_variable_cexpression (temp_var.name));
430
430
                                                                        carg_map.set (get_param_pos (param.cdelegate_target_parameter_position + 0.01), new CCodeUnaryExpression (CCodeUnaryOperator.ADDRESS_OF, get_delegate_target_destroy_notify (arg)));
518
518
                                set_delegate_target (expr, temp_ref);
519
519
 
520
520
                                if (deleg_type.value_owned) {
521
 
                                        temp_var = get_temp_variable (new DelegateType ((Delegate) context.root.scope.lookup ("GLib").scope.lookup ("DestroyNotify")));
 
521
                                        temp_var = get_temp_variable (gdestroynotify_type);
522
522
                                        temp_ref = get_variable_cexpression (temp_var.name);
523
523
 
524
524
                                        emit_temp_var (temp_var);