Trivial formatting fixes

This commit is contained in:
Matthias Clasen
2013-12-30 08:57:04 -05:00
parent d264d32d3b
commit 95f13ded92

View File

@@ -397,12 +397,12 @@ g_utf8_collate_key (const gchar *str,
result_wc = g_new (wchar_t, xfrm_len + 1); result_wc = g_new (wchar_t, xfrm_len + 1);
wcsxfrm (result_wc, (wchar_t *)str_norm, xfrm_len + 1); wcsxfrm (result_wc, (wchar_t *)str_norm, xfrm_len + 1);
for (i=0; i < xfrm_len; i++) for (i = 0; i < xfrm_len; i++)
result_len += utf8_encode (NULL, result_wc[i]); result_len += utf8_encode (NULL, result_wc[i]);
result = g_malloc (result_len + 1); result = g_malloc (result_len + 1);
result_len = 0; result_len = 0;
for (i=0; i < xfrm_len; i++) for (i = 0; i < xfrm_len; i++)
result_len += utf8_encode (result + result_len, result_wc[i]); result_len += utf8_encode (result + result_len, result_wc[i]);
result[result_len] = '\0'; result[result_len] = '\0';
@@ -471,9 +471,9 @@ g_utf8_collate_key (const gchar *str,
} }
/* This is a collation key that is very very likely to sort before any /* This is a collation key that is very very likely to sort before any
collation key that libc strxfrm generates. We use this before any * collation key that libc strxfrm generates. We use this before any
special case (dot or number) to make sure that its sorted before * special case (dot or number) to make sure that its sorted before
anything else. * anything else.
*/ */
#define COLLATION_SENTINEL "\1\1\1" #define COLLATION_SENTINEL "\1\1\1"
@@ -500,7 +500,7 @@ g_utf8_collate_key (const gchar *str,
* *
* Since: 2.8 * Since: 2.8
*/ */
gchar* gchar *
g_utf8_collate_key_for_filename (const gchar *str, g_utf8_collate_key_for_filename (const gchar *str,
gssize len) gssize len)
{ {