[gnumeric] String handling: use go-string better.
- From: Morten Welinder <mortenw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnumeric] String handling: use go-string better.
- Date: Thu, 13 Aug 2009 23:00:48 +0000 (UTC)
commit 5003e6ab2cae72d73045f1e67cff16cbb6e873b0
Author: Morten Welinder <terra gnome org>
Date: Thu Aug 13 19:00:02 2009 -0400
String handling: use go-string better.
ChangeLog | 5 +++++
src/func.c | 6 +++---
2 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index c3a63a1..f0488a5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-08-13 Morten Welinder <terra gnome org>
+
+ * src/func.c (func_def_cmp, function_category_compare): Take
+ advantage of go-string.
+
2009-08-13 Jean Brefort <jean brefort normalesup org>
* src/gnm-plugin.c (plugin_service_function_group_read_xml): get "lang"
diff --git a/src/func.c b/src/func.c
index 8ceaefa..3415288 100644
--- a/src/func.c
+++ b/src/func.c
@@ -92,7 +92,8 @@ func_def_cmp (gconstpointer a, gconstpointer b)
g_return_val_if_fail (fdb->name != NULL, 0);
if (fda->fn_group != NULL && fdb->fn_group != NULL) {
- int res = strcmp (fda->fn_group->display_name->str, fdb->fn_group->display_name->str);
+ int res = go_string_cmp (fda->fn_group->display_name,
+ fdb->fn_group->display_name);
if (res != 0)
return res;
}
@@ -536,8 +537,7 @@ function_category_compare (gconstpointer a, gconstpointer b)
GnmFuncGroup const *cat_a = a;
GnmFuncGroup const *cat_b = b;
- return g_utf8_collate (cat_a->display_name->str,
- cat_b->display_name->str);
+ return go_string_cmp (cat_a->display_name, cat_b->display_name);
}
GnmFuncGroup *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]