[vala/staging] vala: Unify backing symbol instance of data-types (2)
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] vala: Unify backing symbol instance of data-types (2)
- Date: Wed, 2 Oct 2019 11:46:05 +0000 (UTC)
commit 10754bec97a6adf3119215ef9f49d0c8cd53e43f
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Wed Oct 2 13:37:20 2019 +0200
vala: Unify backing symbol instance of data-types (2)
vala/valafieldprototype.vala | 8 ++++++--
vala/valapropertyprototype.vala | 8 ++++++--
2 files changed, 12 insertions(+), 4 deletions(-)
---
diff --git a/vala/valafieldprototype.vala b/vala/valafieldprototype.vala
index 4fc394fca..3813a55c9 100644
--- a/vala/valafieldprototype.vala
+++ b/vala/valafieldprototype.vala
@@ -26,10 +26,14 @@ using GLib;
* A reference to an instance field without a specific instance.
*/
public class Vala.FieldPrototype : DataType {
- public weak Field field_symbol { get; set; }
+ public weak Field field_symbol {
+ get {
+ return (Field) symbol;
+ }
+ }
public FieldPrototype (Field field_symbol) {
- this.field_symbol = field_symbol;
+ base.with_symbol (field_symbol);
}
public override DataType copy () {
diff --git a/vala/valapropertyprototype.vala b/vala/valapropertyprototype.vala
index 62306cd6c..408fddb71 100644
--- a/vala/valapropertyprototype.vala
+++ b/vala/valapropertyprototype.vala
@@ -24,10 +24,14 @@
* A reference to an instance property without a specific instance.
*/
public class Vala.PropertyPrototype : DataType {
- public weak Property property_symbol { get; set; }
+ public weak Property property_symbol {
+ get {
+ return (Property) symbol;
+ }
+ }
public PropertyPrototype (Property property_symbol) {
- this.property_symbol = property_symbol;
+ base.with_symbol (property_symbol);
}
public override DataType copy () {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]