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 /vapigen | |
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 'vapigen')
-rw-r--r-- | vapigen/valagidlparser.vala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vapigen/valagidlparser.vala b/vapigen/valagidlparser.vala index 1d07cc63a..5f956dbf8 100644 --- a/vapigen/valagidlparser.vala +++ b/vapigen/valagidlparser.vala @@ -2739,6 +2739,9 @@ public class Vala.GIdlParser : CodeVisitor { } } + // there is no information about the internal ownership so assume `owned` as default + prop.property_type.value_owned = true; + var attributes = get_attributes ("%s:%s".printf (get_cname (current_data_type), node.name)); if (attributes != null) { foreach (string attr in attributes) { |