[gnumeric] Search: another raw qsort that should have been g_ptr_array_sort
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Search: another raw qsort that should have been g_ptr_array_sort
- Date: Thu, 30 Nov 2017 13:52:28 +0000 (UTC)
commit 8a93e616448019e91f7b0bb32e0cf4364f233810
Author: Morten Welinder <terra gnome org>
Date: Thu Nov 30 08:51:54 2017 -0500
Search: another raw qsort that should have been g_ptr_array_sort
src/search.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/search.c b/src/search.c
index 622f8c9..1af1ea5 100644
--- a/src/search.c
+++ b/src/search.c
@@ -240,10 +240,8 @@ gnm_search_collect_cells (GnmSearchReplace *sr)
}
/* Sort our cells. */
- qsort (&g_ptr_array_index (cells, 0),
- cells->len,
- sizeof (gpointer),
- sr->by_row ? cb_order_sheet_row_col : cb_order_sheet_col_row);
+ g_ptr_array_sort (cells,
+ sr->by_row ? cb_order_sheet_row_col : cb_order_sheet_col_row);
return cells;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]