[vala] Fix missing const with virtual properties
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vala] Fix missing const with virtual properties
- Date: Fri, 25 Sep 2009 15:14:44 +0000 (UTC)
commit 15f806f611898953a859c393e363d532974c52bd
Author: Jürg Billeter <j bitron ch>
Date: Fri Sep 25 17:14:01 2009 +0200
Fix missing const with virtual properties
codegen/valagtypemodule.vala | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/codegen/valagtypemodule.vala b/codegen/valagtypemodule.vala
index 2f3634d..b1d3f42 100644
--- a/codegen/valagtypemodule.vala
+++ b/codegen/valagtypemodule.vala
@@ -230,11 +230,11 @@ internal class Vala.GTypeModule : GErrorModule {
vdeclarator.add_parameter (cselfparam);
string creturn_type;
if (prop.property_type.is_real_non_null_struct_type ()) {
- var cvalueparam = new CCodeFormalParameter ("result", prop.property_type.get_cname () + "*");
+ var cvalueparam = new CCodeFormalParameter ("result", prop.get_accessor.value_type.get_cname () + "*");
vdeclarator.add_parameter (cvalueparam);
creturn_type = "void";
} else {
- creturn_type = prop.property_type.get_cname ();
+ creturn_type = prop.get_accessor.value_type.get_cname ();
}
var array_type = prop.property_type as ArrayType;
@@ -251,9 +251,9 @@ internal class Vala.GTypeModule : GErrorModule {
if (prop.set_accessor != null) {
CCodeFormalParameter cvalueparam;
if (prop.property_type.is_real_non_null_struct_type ()) {
- cvalueparam = new CCodeFormalParameter ("value", prop.property_type.get_cname () + "*");
+ cvalueparam = new CCodeFormalParameter ("value", prop.get_accessor.value_type.get_cname () + "*");
} else {
- cvalueparam = new CCodeFormalParameter ("value", prop.property_type.get_cname ());
+ cvalueparam = new CCodeFormalParameter ("value", prop.get_accessor.value_type.get_cname ());
}
var vdeclarator = new CCodeFunctionDeclarator ("set_%s".printf (prop.name));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]