=?utf-8?q?=5Blibgee=5D_Pass_slice_in_ReadOnlyList=2C_fixes_bug=C2=A068491?= =?utf-8?q?5?=



commit 638f34078ba96a36e9937544296880bc3f6a52e2
Author: Maciej Piechotka <uzytkownik2 gmail com>
Date:   Thu Sep 27 03:34:06 2012 +0200

    Pass slice in ReadOnlyList, fixes bugÂ684915

 gee/readonlylist.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gee/readonlylist.vala b/gee/readonlylist.vala
index 6526c89..8be3f27 100644
--- a/gee/readonlylist.vala
+++ b/gee/readonlylist.vala
@@ -86,10 +86,10 @@ internal class Gee.ReadOnlyList<G> : Gee.ReadOnlyCollection<G>, List<G> {
 	}
 
 	/**
-	 * Unimplemented method (read only list).
+	 * { inheritDoc}
 	 */
 	public List<G>? slice (int start, int stop) {
-		assert_not_reached ();
+		return ((Gee.List<G>) _collection).slice (start, stop);
 	}
 
 	/**



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