]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
typereference: use unowned in favor of weak
authorFlorian Brosch <flo.brosch@gmail.com>
Tue, 27 Oct 2009 11:56:21 +0000 (12:56 +0100)
committerFlorian Brosch <flo.brosch@gmail.com>
Tue, 27 Oct 2009 11:56:21 +0000 (12:56 +0100)
src/libvaladoc/api/typereference.vala

index 2934362b88c74b4b41319b8c76f5f872250703f9..3b6af658ef72ddf6d57e89426e5a574118c2506f 100644 (file)
@@ -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;