[vala] dova: Fix closures in constructors
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] dova: Fix closures in constructors
- Date: Fri, 2 Jul 2010 19:22:53 +0000 (UTC)
commit 7ed98ee831ac2cb800d9ed7cc22fcdac999d3542
Author: Jürg Billeter <j bitron ch>
Date: Fri Jul 2 19:41:25 2010 +0200
dova: Fix closures in constructors
codegen/valadovabasemodule.vala | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/codegen/valadovabasemodule.vala b/codegen/valadovabasemodule.vala
index a5888f0..01ea90f 100644
--- a/codegen/valadovabasemodule.vala
+++ b/codegen/valadovabasemodule.vala
@@ -776,8 +776,7 @@ internal class Vala.DovaBaseModule : CCodeModule {
ref_call.add_argument (get_variable_cexpression ("_data%d_".printf (parent_block_id)));
cblock.add_statement (new CCodeExpressionStatement (new CCodeAssignment (new CCodeMemberAccess.pointer (get_variable_cexpression ("_data%d_".printf (block_id)), "_data%d_".printf (parent_block_id)), ref_call)));
- } else if ((current_method != null && current_method.binding == MemberBinding.INSTANCE &&
- (!(current_method is CreationMethod) || current_method.body != b)) ||
+ } else if ((current_method != null && current_method.binding == MemberBinding.INSTANCE) ||
(current_property_accessor != null && current_property_accessor.prop.binding == MemberBinding.INSTANCE)) {
var ref_call = new CCodeFunctionCall (get_dup_func_expression (new ObjectType (current_class), b.source_reference));
ref_call.add_argument (new CCodeIdentifier ("this"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]