[vala/0.34] 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/0.34] codegen: Cast *_destroy_func arg of generic-types calls to GDestroyNotify
- Date: Wed, 1 Mar 2017 08:57:18 +0000 (UTC)
commit ed2bfbd611f168051a391cce2eb3daf9c7fbc7ee
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 5f9b629..df8c661 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -4446,7 +4446,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]