summaryrefslogtreecommitdiff
path: root/vala/valaobjectcreationexpression.vala
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2019-01-02 14:23:40 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2019-09-30 09:03:25 +0200
commit7d317ebfd78bb0e569f277e31b0f4522469b48af (patch)
tree208fc9a6d55286bf0d4ad51c6e38046263a62b76 /vala/valaobjectcreationexpression.vala
parent469d043f9c2bb9492392048975809fa4388ca63e (diff)
downloadvala-7d317ebfd78bb0e569f277e31b0f4522469b48af.tar.gz
vala: Let methods return an unowned reference to internal collections
Correctly state ownership in documentation since those were never a copy.
Diffstat (limited to 'vala/valaobjectcreationexpression.vala')
-rw-r--r--vala/valaobjectcreationexpression.vala6
1 files changed, 3 insertions, 3 deletions
diff --git a/vala/valaobjectcreationexpression.vala b/vala/valaobjectcreationexpression.vala
index 1f6d335fc..19063a9d0 100644
--- a/vala/valaobjectcreationexpression.vala
+++ b/vala/valaobjectcreationexpression.vala
@@ -85,11 +85,11 @@ public class Vala.ObjectCreationExpression : Expression {
}
/**
- * Returns a copy of the argument list.
+ * Returns the argument list.
*
* @return argument list
*/
- public List<Expression> get_argument_list () {
+ public unowned List<Expression> get_argument_list () {
return argument_list;
}
@@ -108,7 +108,7 @@ public class Vala.ObjectCreationExpression : Expression {
*
* @return member initializer list
*/
- public List<MemberInitializer> get_object_initializer () {
+ public unowned List<MemberInitializer> get_object_initializer () {
return object_initializer;
}