[vala] Fix return type of closure unref function
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vala] Fix return type of closure unref function
- Date: Tue, 29 Sep 2009 20:31:03 +0000 (UTC)
commit 9ef542a99cc1d8263d5953b754c0b23bff4d0312
Author: Jürg Billeter <j bitron ch>
Date: Tue Sep 29 22:25:24 2009 +0200
Fix return type of closure unref function
codegen/valaccodebasemodule.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index 38662ba..8a1ce31 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -1839,7 +1839,7 @@ internal class Vala.CCodeBaseModule : CCodeModule {
ref_fun.block.add_statement (new CCodeReturnStatement (new CCodeIdentifier ("_data%d_".printf (block_id))));
source_type_member_definition.append (ref_fun);
- var unref_fun = new CCodeFunction ("block%d_data_unref".printf (block_id), struct_name + "*");
+ var unref_fun = new CCodeFunction ("block%d_data_unref".printf (block_id), "void");
unref_fun.add_parameter (new CCodeFormalParameter ("_data%d_".printf (block_id), struct_name + "*"));
unref_fun.modifiers = CCodeModifiers.STATIC;
source_declarations.add_type_member_declaration (unref_fun.copy ());
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]