diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2019-10-11 16:19:19 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2019-10-11 16:20:49 +0200 |
commit | 09277771a73ff9e2331bc6a84a1959d9780f5c3c (patch) | |
tree | 82d24cac418de33a6db3ebcd7b612bfd8972d058 /libvaladoc | |
parent | 05a7609e3e85dca7594f907915d543bc3453afdb (diff) | |
download | vala-09277771a73ff9e2331bc6a84a1959d9780f5c3c.tar.gz |
libvaladoc: Fix ownership declarations of Constants
Diffstat (limited to 'libvaladoc')
-rw-r--r-- | libvaladoc/api/typereference.vala | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libvaladoc/api/typereference.vala b/libvaladoc/api/typereference.vala index 41b766e41..c328eaf39 100644 --- a/libvaladoc/api/typereference.vala +++ b/libvaladoc/api/typereference.vala @@ -62,6 +62,8 @@ public class Valadoc.Api.TypeReference : Item { return Ownership.OWNED; } return Ownership.DEFAULT; + } else if (type.parent_node is Vala.Constant) { + return Ownership.DEFAULT; } if (type.is_weak ()) { return Ownership.UNOWNED; |