[libgee] Fix benchmark's build with vala master



commit 7840ffdbc997cb359c5197b9624032b5f7a74731
Author: Didier 'Ptitjes <ptitjes free fr>
Date:   Mon Sep 14 23:05:01 2009 +0200

    Fix benchmark's build with vala master

 benchmark/benchmarksorts.vala |    2 +-
 benchmark/mergesort.vala      |   10 +++++-----
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/benchmark/benchmarksorts.vala b/benchmark/benchmarksorts.vala
index f02e1c2..6e384cf 100644
--- a/benchmark/benchmarksorts.vala
+++ b/benchmark/benchmarksorts.vala
@@ -40,7 +40,7 @@ namespace Gee.Benchmark {
 
 		public void process_collection (Collection<G> collection) {
 			CompareFunc compare = Functions.get_compare_func_for (typeof (G));
-			Gee.MergeSort<G>.sort ((Gee.List<G>) collection, compare);
+			Gee.MergeSort.sort<G> ((Gee.List<G>) collection, compare);
 		}
 	}
 
diff --git a/benchmark/mergesort.vala b/benchmark/mergesort.vala
index 988c9d3..f20cc92 100644
--- a/benchmark/mergesort.vala
+++ b/benchmark/mergesort.vala
@@ -22,15 +22,15 @@
 
 internal class Gee.MergeSort<G> {
 
-	public static void sort (List<G> list, CompareFunc compare) {
+	public static void sort<G> (List<G> list, CompareFunc compare) {
 		if (list is ArrayList) {
-			MergeSort<G>.sort_arraylist ((ArrayList<G>) list, compare);
+			MergeSort.sort_arraylist<G> ((ArrayList<G>) list, compare);
 		} else {
-			MergeSort<G>.sort_list (list, compare);
+			MergeSort.sort_list<G> (list, compare);
 		}
 	}
 
-	public static void sort_list (List<G> list, CompareFunc compare) {
+	public static void sort_list<G> (List<G> list, CompareFunc compare) {
 		MergeSort<G> helper = new MergeSort<G> ();
 
 		helper.list_collection = list;
@@ -49,7 +49,7 @@ internal class Gee.MergeSort<G> {
 		}
 	}
 
-	public static void sort_arraylist (ArrayList<G> list, CompareFunc compare) {
+	public static void sort_arraylist<G> (ArrayList<G> list, CompareFunc compare) {
 		MergeSort<G> helper = new MergeSort<G> ();
 
 		helper.list_collection = list;



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