[vala/staging] codegen: Cast destroy_data for g_cclosure_new to GClosureNotify
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] codegen: Cast destroy_data for g_cclosure_new to GClosureNotify
- Date: Tue, 28 Feb 2017 10:58:36 +0000 (UTC)
commit ec729f2c00cbe44e2b484ebb0a867d576b017bbe
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Tue Feb 28 11:36:30 2017 +0100
codegen: Cast destroy_data for g_cclosure_new to GClosureNotify
codegen/valaccodemethodcallmodule.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valaccodemethodcallmodule.vala b/codegen/valaccodemethodcallmodule.vala
index dce947f..c047a52 100644
--- a/codegen/valaccodemethodcallmodule.vala
+++ b/codegen/valaccodemethodcallmodule.vala
@@ -374,7 +374,7 @@ public class Vala.CCodeMethodCallModule : CCodeAssignmentModule {
var closure_new = new
CCodeFunctionCall (new CCodeIdentifier ("g_cclosure_new"));
closure_new.add_argument (new
CCodeCastExpression (cexpr, "GCallback"));
closure_new.add_argument
(delegate_target);
- closure_new.add_argument
(delegate_target_destroy_notify);
+ closure_new.add_argument (new
CCodeCastExpression (delegate_target_destroy_notify, "GClosureNotify"));
cexpr = new
CCodeConditionalExpression (new CCodeBinaryExpression (CCodeBinaryOperator.EQUALITY, cexpr, new
CCodeIdentifier ("NULL")), new CCodeIdentifier ("NULL"), closure_new);
} else {
carg_map.set (get_param_pos
(get_ccode_delegate_target_pos (param)), delegate_target);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]