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/valaenum.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/valaenum.vala')
-rw-r--r-- | vala/valaenum.vala | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/vala/valaenum.vala b/vala/valaenum.vala index 508ef12ef..592e6e7a8 100644 --- a/vala/valaenum.vala +++ b/vala/valaenum.vala @@ -103,29 +103,29 @@ public class Vala.Enum : TypeSymbol { } /** - * Returns a copy of the list of enum values. + * Returns the list of enum values. * * @return list of enum values */ - public List<EnumValue> get_values () { + public unowned List<EnumValue> get_values () { return values; } /** - * Returns a copy of the list of methods. + * Returns the list of methods. * * @return list of methods */ - public List<Method> get_methods () { + public unowned List<Method> get_methods () { return methods; } /** - * Returns a copy of the list of constants. + * Returns the list of constants. * * @return list of constants */ - public List<Constant> get_constants () { + public unowned List<Constant> get_constants () { return constants; } |