[vala] codegen: Do not hardcode the cname for abstract/virtual property accessor
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] codegen: Do not hardcode the cname for abstract/virtual property accessor
- Date: Thu, 1 Sep 2011 14:22:55 +0000 (UTC)
commit be3ef456c1e3b731118bdc7a025a328215ea7937
Author: Luca Bruno <lucabru src gnome org>
Date: Thu Sep 1 13:44:55 2011 +0200
codegen: Do not hardcode the cname for abstract/virtual property accessor
codegen/valagtypemodule.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/codegen/valagtypemodule.vala b/codegen/valagtypemodule.vala
index 745f136..02d8996 100644
--- a/codegen/valagtypemodule.vala
+++ b/codegen/valagtypemodule.vala
@@ -1374,7 +1374,7 @@ public class Vala.GTypeModule : GErrorModule {
if (prop.get_accessor != null) {
string cname = CCodeBaseModule.get_ccode_real_name (prop.get_accessor);
if (prop.is_abstract || prop.is_virtual) {
- cname = "%s_get_%s".printf (get_ccode_lower_case_name (cl, null), prop.name);
+ cname = CCodeBaseModule.get_ccode_name (prop.get_accessor);
}
CCodeExpression cfunc = new CCodeIdentifier (cname);
@@ -1386,7 +1386,7 @@ public class Vala.GTypeModule : GErrorModule {
if (prop.set_accessor != null) {
string cname = CCodeBaseModule.get_ccode_real_name (prop.set_accessor);
if (prop.is_abstract || prop.is_virtual) {
- cname = "%s_set_%s".printf (get_ccode_lower_case_name (cl, null), prop.name);
+ cname = CCodeBaseModule.get_ccode_name (prop.set_accessor);
}
CCodeExpression cfunc = new CCodeIdentifier (cname);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]