[libgee] Fix build with vala master



commit 9a6ec828ec3efd5dd6955e36deade406d336a48e
Author: Jürg Billeter <j bitron ch>
Date:   Mon Sep 14 22:16:06 2009 +0200

    Fix build with vala master

 gee/abstractlist.vala |    2 +-
 gee/timsort.vala      |   10 +++++-----
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gee/abstractlist.vala b/gee/abstractlist.vala
index da70499..ec1bb39 100644
--- a/gee/abstractlist.vala
+++ b/gee/abstractlist.vala
@@ -92,7 +92,7 @@ public abstract class Gee.AbstractList<G> : Gee.AbstractCollection<G>, List<G> {
 		if (compare == null) {
 			compare = Functions.get_compare_func_for (typeof (G));
 		}
-		TimSort<G>.sort (this, compare);
+		TimSort.sort<G> (this, compare);
 	}
 
 	private weak List<G> _read_only_view;
diff --git a/gee/timsort.vala b/gee/timsort.vala
index 30db78f..465875d 100644
--- a/gee/timsort.vala
+++ b/gee/timsort.vala
@@ -46,15 +46,15 @@
  */
 internal class Gee.TimSort<G> : Object {
 
-	public static void sort (List<G> list, CompareFunc compare) {
+	public static void sort<G> (List<G> list, CompareFunc compare) {
 		if (list is ArrayList) {
-			TimSort<G>.sort_arraylist ((ArrayList<G>) list, compare);
+			TimSort.sort_arraylist<G> ((ArrayList<G>) list, compare);
 		} else {
-			TimSort<G>.sort_list (list, compare);
+			TimSort.sort_list<G> (list, compare);
 		}
 	}
 
-	private static void sort_list (List<G> list, CompareFunc compare) {
+	private static void sort_list<G> (List<G> list, CompareFunc compare) {
 		TimSort<G> helper = new TimSort<G> ();
 
 		helper.list_collection = list;
@@ -73,7 +73,7 @@ internal class Gee.TimSort<G> : Object {
 		}
 	}
 
-	private static void sort_arraylist (ArrayList<G> list, CompareFunc compare) {
+	private static void sort_arraylist<G> (ArrayList<G> list, CompareFunc compare) {
 		TimSort<G> helper = new TimSort<G> ();
 
 		helper.list_collection = list;



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