[libgee/0.10] Use .value instead of value directly in unfold



commit 040f724d60155b38423ddcb13903431d2a74be6c
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]