[vala/0.40] libvaladoc: Fix ownership declarations of Constants
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.40] libvaladoc: Fix ownership declarations of Constants
- Date: Mon, 14 Oct 2019 12:27:10 +0000 (UTC)
commit cdad1b9960c4bd13486c06f98330f72e4e6d477c
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Fri Oct 11 16:19:19 2019 +0200
libvaladoc: Fix ownership declarations of Constants
valadoc/treebuilder.vala | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/valadoc/treebuilder.vala b/valadoc/treebuilder.vala
index 061cb0c79..e03d9d80d 100644
--- a/valadoc/treebuilder.vala
+++ b/valadoc/treebuilder.vala
@@ -705,6 +705,8 @@ public class Valadoc.Drivers.TreeBuilder : Vala.CodeVisitor {
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]