[vala/0.44] libvaladoc: Fix ownership declarations of Constants
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.44] libvaladoc: Fix ownership declarations of Constants
- Date: Mon, 14 Oct 2019 12:27:26 +0000 (UTC)
commit 7dbb1da2d27d2b983b746d02fd7396caa44d551a
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]