From: Florian Brosch Date: Tue, 27 Oct 2009 11:56:21 +0000 (+0100) Subject: typereference: use unowned in favor of weak X-Git-Tag: 0.37.1~3^2~517 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03db4653ebf182f29c6576db73545d2b6b171952;p=thirdparty%2Fvala.git typereference: use unowned in favor of weak --- diff --git a/src/libvaladoc/api/typereference.vala b/src/libvaladoc/api/typereference.vala index 2934362b8..3b6af658e 100644 --- a/src/libvaladoc/api/typereference.vala +++ b/src/libvaladoc/api/typereference.vala @@ -82,17 +82,8 @@ public class Valadoc.Api.TypeReference : Item { } } - public bool is_unowned { + public bool is_weak { get { - Vala.CodeNode parent = this.vtyperef.parent_node; - - // parameter: - if (parent is Vala.FormalParameter) { - if (((Vala.FormalParameter)parent).direction == Vala.ParameterDirection.IN) { - return false; - } - return this.is_weak_helper ( ((Vala.FormalParameter)parent).parameter_type ); - } return false; } } @@ -123,7 +114,7 @@ public class Valadoc.Api.TypeReference : Item { } } - public bool is_weak { + public bool is_unowned { get { Vala.CodeNode parent = this.vtyperef.parent_node;