[vala/staging] codegen: Cast *_destroy_func arg of generic-types calls to GDestroyNotify
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] codegen: Cast *_destroy_func arg of generic-types calls to GDestroyNotify
- Date: Mon, 27 Feb 2017 14:54:59 +0000 (UTC)
commit 39e351c24316aa5fce340b89c4698f4035949aaf
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Mon Feb 27 15:45:40 2017 +0100
codegen: Cast *_destroy_func arg of generic-types calls to GDestroyNotify
codegen/valaccodebasemodule.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index 9512895..4be48a0 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -4482,7 +4482,7 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator {
return;
}
arg_map.set (get_param_pos (0.1 * type_param_index + 0.04), new
CCodeCastExpression (dup_func, "GBoxedCopyFunc"));
- arg_map.set (get_param_pos (0.1 * type_param_index + 0.06),
get_destroy_func_expression (type_arg, is_chainup));
+ arg_map.set (get_param_pos (0.1 * type_param_index + 0.06), new
CCodeCastExpression (get_destroy_func_expression (type_arg, is_chainup), "GDestroyNotify"));
} else {
arg_map.set (get_param_pos (0.1 * type_param_index + 0.04), new CCodeConstant
("NULL"));
arg_map.set (get_param_pos (0.1 * type_param_index + 0.06), new CCodeConstant
("NULL"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]