[libgee] Fix Traversable<G>.stream in ReadOnlyCollection



commit bf1e4ebf469848d7945a0b81757d4aeb7104bdf5
Author: Maciej Piechotka <uzytkownik2 gmail com>
Date:   Mon Aug 1 03:50:43 2011 +0100

    Fix Traversable<G>.stream in ReadOnlyCollection

 gee/readonlycollection.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gee/readonlycollection.vala b/gee/readonlycollection.vala
index 9b0dc57..a51b5f3 100644
--- a/gee/readonlycollection.vala
+++ b/gee/readonlycollection.vala
@@ -77,7 +77,7 @@ internal class Gee.ReadOnlyCollection<G> : Object, Iterable<G>, Traversable<G>,
 	 * { inheritDoc}
 	 */
 	public Gee.Iterator<A> stream<A> (owned StreamFunc<A> f) {
-		return _collection.stream<A> (f);
+		return _collection.stream<A> ((owned)f);
 	}
 
 	/**
@@ -197,7 +197,7 @@ internal class Gee.ReadOnlyCollection<G> : Object, Iterable<G>, Traversable<G>,
 		}
 
 		public Gee.Iterator<A> stream<A> (owned StreamFunc<A, G> f) {
-			return Gee.Iterator.stream_impl<G, A>(this, (owned)f);
+			return _iter.stream<A> ((owned)f);
 		}
 	}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]