Commit d3815481 authored by Morten Welinder's avatar Morten Welinder

Compilation: use g_ptr_array_sort instead of raw qsort.

parent fe0d5418
......@@ -293,10 +293,7 @@ enumerate_functions (gboolean filter)
gnm_func_load_if_stub (fd);
}
if (res->len > 0)
qsort (&g_ptr_array_index (res, 0),
res->len, sizeof (gpointer),
func_def_cmp);
g_ptr_array_sort (res, func_def_cmp);
return res;
}
......
2017-11-29 Morten Welinder <terra@gnome.org>
* gnm-validation-combo-view.c (vcombo_create_list): Use
g_ptr_array_sort for simplicity.
* gnm-filter-combo-view.c (fcombo_create_list): Ditto.
2017-11-18 Morten Welinder <terra@gnome.org>
* Release 1.12.36
......
......@@ -218,9 +218,7 @@ fcombo_create_list (SheetObject *so,
(CellIterFunc)&cb_collect_content, &uc);
g_hash_table_foreach (uc.hash, (GHFunc)cb_hash_domain, sorted);
qsort (&g_ptr_array_index (sorted, 0),
sorted->len, sizeof (char *),
&value_cmp);
g_ptr_array_sort (sorted, value_cmp);
if (fcombo->cond != NULL &&
fcombo->cond->op[0] == GNM_FILTER_OP_EQUAL &&
......
......@@ -127,9 +127,7 @@ vcombo_create_list (SheetObject *so,
sorted = g_ptr_array_new ();
g_hash_table_foreach (uc.hash, (GHFunc)cb_hash_domain, sorted);
qsort (&g_ptr_array_index (sorted, 0),
sorted->len, sizeof (char *),
&value_cmp);
g_ptr_array_sort (sorted, value_cmp);
model = gtk_list_store_new (3,
G_TYPE_STRING, G_TYPE_STRING, gnm_value_get_type ());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment