[libgee/0.8] Use .value instead of value directly in unfold
- From: Maciej Marcin Piechotka <mpiechotka src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgee/0.8] Use .value instead of value directly in unfold
- Date: Sat, 6 Jul 2013 17:55:18 +0000 (UTC)
commit 8a2c3d2aa2e83b6777c65d7d8fc3a17780f92cc1
Author: Maciej Piechotka <uzytkownik2 gmail com>
Date: Sat Jul 6 18:37:47 2013 +0200
Use .value instead of value directly in unfold
gee/unfolditerator.vala | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gee/unfolditerator.vala b/gee/unfolditerator.vala
index 30dcd74..a373268 100644
--- a/gee/unfolditerator.vala
+++ b/gee/unfolditerator.vala
@@ -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;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]