From 7840ffdbc997cb359c5197b9624032b5f7a74731 Mon Sep 17 00:00:00 2001 From: Didier 'Ptitjes Date: Mon, 14 Sep 2009 23:05:01 +0200 Subject: [PATCH] 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 collection) { CompareFunc compare = Functions.get_compare_func_for (typeof (G)); - Gee.MergeSort.sort ((Gee.List) collection, compare); + Gee.MergeSort.sort ((Gee.List) 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 { - public static void sort (List list, CompareFunc compare) { + public static void sort (List list, CompareFunc compare) { if (list is ArrayList) { - MergeSort.sort_arraylist ((ArrayList) list, compare); + MergeSort.sort_arraylist ((ArrayList) list, compare); } else { - MergeSort.sort_list (list, compare); + MergeSort.sort_list (list, compare); } } - public static void sort_list (List list, CompareFunc compare) { + public static void sort_list (List list, CompareFunc compare) { MergeSort helper = new MergeSort (); helper.list_collection = list; @@ -49,7 +49,7 @@ internal class Gee.MergeSort { } } - public static void sort_arraylist (ArrayList list, CompareFunc compare) { + public static void sort_arraylist (ArrayList list, CompareFunc compare) { MergeSort helper = new MergeSort (); helper.list_collection = list; -- 2.7.4