diff options
author | Jürg Billeter <j@bitron.ch> | 2009-06-06 17:04:02 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2009-06-06 17:20:19 +0200 |
commit | fef10859ae29c524cac6a7388759f02e26df160d (patch) | |
tree | d7109c2f82aa845e5a86c37475da1e04eee133f0 /gee | |
parent | a71e6e0dea67455e741ffe319f796419a3fa42fe (diff) | |
download | vala-fef10859ae29c524cac6a7388759f02e26df160d.tar.gz |
Convert for loops into simple loops
Diffstat (limited to 'gee')
-rw-r--r-- | gee/hashmap.vala | 2 | ||||
-rw-r--r-- | gee/hashset.vala | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gee/hashmap.vala b/gee/hashmap.vala index 67b08ba91..c152b7b74 100644 --- a/gee/hashmap.vala +++ b/gee/hashmap.vala @@ -153,7 +153,7 @@ public class Gee.HashMap<K,V> : CollectionObject, Map<K,V> { for (int i = 0; i < _array_size; i++) { Node<K,V> node; - Node<K,V> next; + Node<K,V> next = null; for (node = (owned) _nodes[i]; node != null; node = (owned) next) { next = (owned) node.next; uint hash_val = node.key_hash % new_array_size; diff --git a/gee/hashset.vala b/gee/hashset.vala index a5a98050c..712fd8d9a 100644 --- a/gee/hashset.vala +++ b/gee/hashset.vala @@ -137,7 +137,7 @@ public class Gee.HashSet<G> : CollectionObject, Iterable<G>, Collection<G>, Set< for (int i = 0; i < _array_size; i++) { Node<G> node; - Node<G> next; + Node<G> next = null; for (node = (owned) _nodes[i]; node != null; node = (owned) next) { next = (owned) node.next; uint hash_val = node.key_hash % new_array_size; |