diff options
author | Jürg Billeter <j@bitron.ch> | 2010-03-20 12:10:54 +0100 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2010-03-20 12:10:54 +0100 |
commit | 98602e201c4032bac943ede2149f6de62a1d8f4f (patch) | |
tree | 856f4f52ca59126178d052101008266a038676ae /vala/valaforstatement.vala | |
parent | 898564ab223f016484bc792b7b32cfd6d7040f28 (diff) | |
download | vala-98602e201c4032bac943ede2149f6de62a1d8f4f.tar.gz |
Drop ReadOnly* collection classes
They are not very useful in the compiler as they are not immutable,
which means that they do not allow iteration while modifying the
underlying collection.
Diffstat (limited to 'vala/valaforstatement.vala')
-rw-r--r-- | vala/valaforstatement.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vala/valaforstatement.vala b/vala/valaforstatement.vala index 44fac128a..99301fe9f 100644 --- a/vala/valaforstatement.vala +++ b/vala/valaforstatement.vala @@ -90,7 +90,7 @@ public class Vala.ForStatement : CodeNode, Statement { * @return initializer list */ public List<Expression> get_initializer () { - return new ReadOnlyList<Expression> (initializer); + return initializer; } /** @@ -109,7 +109,7 @@ public class Vala.ForStatement : CodeNode, Statement { * @return iterator */ public List<Expression> get_iterator () { - return new ReadOnlyList<Expression> (iterator); + return iterator; } public override void accept (CodeVisitor visitor) { |