diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2019-09-02 09:40:40 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2019-09-02 10:27:27 +0200 |
commit | e0ab9aea1477d7a14f823a5b8f5f7e8c017aebea (patch) | |
tree | 370838158874c0c446220de4c39fc5de3b92c433 /vala/valagirparser.vala | |
parent | 6e38fba613cf7c930938a3129aa3dc7e1d67225f (diff) | |
download | vala-e0ab9aea1477d7a14f823a5b8f5f7e8c017aebea.tar.gz |
girparser/gidlparser: "value_owned = true" by default for property types
This represents an internal implementation detail which is available from
vala sources and it does not effect the ownership of property accessors.
Diffstat (limited to 'vala/valagirparser.vala')
-rw-r--r-- | vala/valagirparser.vala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala index 57931ee50..36d249c90 100644 --- a/vala/valagirparser.vala +++ b/vala/valagirparser.vala @@ -996,6 +996,9 @@ public class Vala.GirParser : CodeVisitor { prop.set_accessor = new PropertyAccessor (false, (construct_only != "1") && (writable == "1"), (construct_only == "1") || (construct_ == "1"), prop.property_type.copy (), null, null); } + // there is no information about the internal ownership so assume `owned` as default + prop.property_type.value_owned = true; + // find virtual/abstract accessors to handle abstract properties properly Node getter = null; |