[vala/wip/attributes: 35/119] codegen: Add get_ccode_destroy_notify_pos
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/attributes: 35/119] codegen: Add get_ccode_destroy_notify_pos
- Date: Mon, 4 Jul 2011 10:25:02 +0000 (UTC)
commit 3ec8cd498c4a0e5c3d72718c9a7add2de070adc9
Author: Luca Bruno <lucabru src gnome org>
Date: Tue Jun 28 19:39:46 2011 +0200
codegen: Add get_ccode_destroy_notify_pos
codegen/valaccodemethodcallmodule.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/codegen/valaccodemethodcallmodule.vala b/codegen/valaccodemethodcallmodule.vala
index 6095862..2c6e4ef 100644
--- a/codegen/valaccodemethodcallmodule.vala
+++ b/codegen/valaccodemethodcallmodule.vala
@@ -377,9 +377,9 @@ public class Vala.CCodeMethodCallModule : CCodeAssignmentModule {
var type_arg = ma.get_type_arguments ().get (type_param_index);
if (param.variable_type.value_owned) {
if (requires_copy (type_arg)) {
- carg_map.set (get_param_pos (param.cdestroy_notify_parameter_position), get_destroy_func_expression (type_arg));
+ carg_map.set (get_param_pos (get_ccode_destroy_notify_pos (param)), get_destroy_func_expression (type_arg));
} else {
- carg_map.set (get_param_pos (param.cdestroy_notify_parameter_position), new CCodeConstant ("NULL"));
+ carg_map.set (get_param_pos (get_ccode_destroy_notify_pos (param)), new CCodeConstant ("NULL"));
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]