diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2019-01-02 14:23:40 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2019-09-30 09:03:25 +0200 |
commit | 7d317ebfd78bb0e569f277e31b0f4522469b48af (patch) | |
tree | 208fc9a6d55286bf0d4ad51c6e38046263a62b76 /vala/valaforstatement.vala | |
parent | 469d043f9c2bb9492392048975809fa4388ca63e (diff) | |
download | vala-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/valaforstatement.vala')
-rw-r--r-- | vala/valaforstatement.vala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vala/valaforstatement.vala b/vala/valaforstatement.vala index aa70cee0b..19501c614 100644 --- a/vala/valaforstatement.vala +++ b/vala/valaforstatement.vala @@ -85,11 +85,11 @@ public class Vala.ForStatement : CodeNode, Statement { } /** - * Returns a copy of the list of initializers. + * Returns the list of initializers. * * @return initializer list */ - public List<Expression> get_initializer () { + public unowned List<Expression> get_initializer () { return initializer; } @@ -104,11 +104,11 @@ public class Vala.ForStatement : CodeNode, Statement { } /** - * Returns a copy of the iterator. + * Returns the iterator. * * @return iterator */ - public List<Expression> get_iterator () { + public unowned List<Expression> get_iterator () { return iterator; } |