projects
/
platform
/
upstream
/
libgee.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb6affb
)
Fix the foreach in TreeMap.values
author
Maciej Piechotka
<uzytkownik2@gmail.com>
Wed, 24 Jul 2013 20:41:22 +0000
(22:41 +0200)
committer
Maciej Piechotka
<uzytkownik2@gmail.com>
Wed, 24 Jul 2013 20:42:05 +0000
(22:42 +0200)
gee/treemap.vala
patch
|
blob
|
history
diff --git
a/gee/treemap.vala
b/gee/treemap.vala
index
2d2708a
..
b957aff
100644
(file)
--- a/
gee/treemap.vala
+++ b/
gee/treemap.vala
@@
-1714,7
+1714,7
@@
public class Gee.TreeMap<K,V> : Gee.AbstractBidirSortedMap<K,V> {
public bool foreach (ForallFunc<V> f) {
if (current != null) {
- if (!f (current.
key
)) {
+ if (!f (current.
value
)) {
return false;
}
current = current.next;
@@
-1729,7
+1729,7
@@
public class Gee.TreeMap<K,V> : Gee.AbstractBidirSortedMap<K,V> {
}
}
for (; current != null; current = current.next) {
- if (!f (current.
key
)) {
+ if (!f (current.
value
)) {
return false;
}
}