Commit 040f724d authored by Maciej (Matthew) Piechotka's avatar Maciej (Matthew) Piechotka
Browse files

Use .value instead of value directly in unfold

parent 784f004e
......@@ -62,13 +62,13 @@ internal class Gee.UnfoldIterator<G> : Object, Traversable<G>, Iterator<G> {
public bool foreach (ForallFunc<G> f) {
if (_current != null) {
if (!f (_current)) {
if (!f (_current.value)) {
return false;
}
}
if (_next != null) {
_current = (owned)_next;
if (!f (_current)) {
if (!f (_current.value)) {
return false;
}
} else if (_end) {
......@@ -80,14 +80,14 @@ internal class Gee.UnfoldIterator<G> : Object, Traversable<G>, Iterator<G> {
_end = true;
return true;
} else {
if (!f (_current)) {
if (!f (_current.value)) {
return false;
}
}
}
while ((_next = _func ()) != null) {
_current = (owned)_next;
if (!f (_current)) {
if (!f (_current.value)) {
return false;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment