[vala/0.46] libvaladoc: Fix ownership declarations of Constants



commit 096ab07bc6d8197098e9b476901a9595972ebe28
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 e3f46b307..1f099d7c1 100644
--- a/libvaladoc/api/typereference.vala
+++ b/libvaladoc/api/typereference.vala
@@ -144,6 +144,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]