[vala] codegen: use real function in set/get property also for ConcreteAccessor
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] codegen: use real function in set/get property also for ConcreteAccessor
- Date: Fri, 13 Mar 2015 14:08:52 +0000 (UTC)
commit 9b1a55a42082637c1559ca00bb46bb9ac739095d
Author: Luca Bruno <lucabru src gnome org>
Date: Thu Mar 12 18:27:06 2015 +0100
codegen: use real function in set/get property also for ConcreteAccessor
Fixes bug 743049
codegen/valagobjectmodule.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/codegen/valagobjectmodule.vala b/codegen/valagobjectmodule.vala
index 05450b2..79629af 100644
--- a/codegen/valagobjectmodule.vala
+++ b/codegen/valagobjectmodule.vala
@@ -207,7 +207,7 @@ public class Vala.GObjectModule : GTypeModule {
}
CCodeExpression cfunc;
- if (!get_ccode_no_accessor_method (base_prop)) {
+ if (!get_ccode_no_accessor_method (base_prop) && !get_ccode_concrete_accessor
(base_prop)) {
cfunc = new CCodeIdentifier (get_ccode_name (base_prop.get_accessor));
} else {
// use the static real function as helper
@@ -314,7 +314,7 @@ public class Vala.GObjectModule : GTypeModule {
}
CCodeExpression cfunc;
- if (!get_ccode_no_accessor_method (base_prop)) {
+ if (!get_ccode_no_accessor_method (base_prop) && !get_ccode_concrete_accessor
(base_prop)) {
cfunc = new CCodeIdentifier (get_ccode_name (base_prop.set_accessor));
} else {
// use the static real function as helper
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]