summaryrefslogtreecommitdiff
path: root/vala/valabasicblock.vala
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2010-03-20 12:10:54 +0100
committerJürg Billeter <j@bitron.ch>2010-03-20 12:10:54 +0100
commit98602e201c4032bac943ede2149f6de62a1d8f4f (patch)
tree856f4f52ca59126178d052101008266a038676ae /vala/valabasicblock.vala
parent898564ab223f016484bc792b7b32cfd6d7040f28 (diff)
downloadvala-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/valabasicblock.vala')
-rw-r--r--vala/valabasicblock.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/vala/valabasicblock.vala b/vala/valabasicblock.vala
index 7339224d5..ef32e051e 100644
--- a/vala/valabasicblock.vala
+++ b/vala/valabasicblock.vala
@@ -70,11 +70,11 @@ public class Vala.BasicBlock {
}
public List<weak BasicBlock> get_predecessors () {
- return new ReadOnlyList<weak BasicBlock> (predecessors);
+ return predecessors;
}
public List<weak BasicBlock> get_successors () {
- return new ReadOnlyList<weak BasicBlock> (successors);
+ return successors;
}
public void add_child (BasicBlock block) {