summaryrefslogtreecommitdiff
path: root/vala/valadatatype.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/valadatatype.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/valadatatype.vala')
-rw-r--r--vala/valadatatype.vala8
1 files changed, 4 insertions, 4 deletions
diff --git a/vala/valadatatype.vala b/vala/valadatatype.vala
index 608178fde..2580eb6e8 100644
--- a/vala/valadatatype.vala
+++ b/vala/valadatatype.vala
@@ -71,11 +71,11 @@ public abstract class Vala.DataType : CodeNode {
}
/**
- * Returns a copy of the list of generic type arguments.
+ * Returns the list of generic type arguments.
*
* @return type argument list
*/
- public List<DataType> get_type_arguments () {
+ public unowned List<DataType> get_type_arguments () {
if (type_argument_list != null) {
return type_argument_list;
}
@@ -378,11 +378,11 @@ public abstract class Vala.DataType : CodeNode {
}
/**
- * Returns copy of the list of invocation parameters.
+ * Returns the list of invocation parameters.
*
* @return parameter list
*/
- public virtual List<Parameter>? get_parameters () {
+ public virtual unowned List<Parameter>? get_parameters () {
return null;
}