[vala/staging: 3/4] libvaladoc: Fix ownership declarations of Constants



commit 09277771a73ff9e2331bc6a84a1959d9780f5c3c
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Fri Oct 11 16:19:19 2019 +0200

    libvaladoc: Fix ownership declarations of Constants

 libvaladoc/api/typereference.vala | 2 ++
 1 file changed, 2 insertions(+)
---
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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]