summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2019-10-24 11:39:12 +0100
committerSimon McVittie <smcv@collabora.com>2019-10-24 11:57:13 +0100
commitef6fe191acbe0e9f41dc806751accf4e15bfe639 (patch)
tree041bd9b2095c6f3ed47b19e242cfb9aafa33f883
parent8a7b375216ef65d76510f3ea37e526392d160f4c (diff)
downloadglib-ef6fe191acbe0e9f41dc806751accf4e15bfe639.tar.gz
array: Remove unnecessary casts from doc-comments
Let's not encourage library users to sprinkle casts through their code when they don't need to. Signed-off-by: Simon McVittie <smcv@collabora.com> Fixes: 52c130f8
-rw-r--r--glib/garray.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/glib/garray.c b/glib/garray.c
index 2e8dd0b6b..05c68e1c2 100644
--- a/glib/garray.c
+++ b/glib/garray.c
@@ -1910,7 +1910,7 @@ g_ptr_array_insert (GPtrArray *array,
* // initialize file_list array and load with many FileListEntry entries
* ...
* // now sort it with
- * g_ptr_array_sort (file_list, (GCompareFunc) sort_filelist);
+ * g_ptr_array_sort (file_list, sort_filelist);
* ]|
*
* This is guaranteed to be a stable sort since version 2.32.
@@ -1983,7 +1983,7 @@ g_ptr_array_sort (GPtrArray *array,
* // now sort it with
* sort_mode = SORT_NAME;
* g_ptr_array_sort_with_data (file_list,
- * (GCompareFunc) sort_filelist,
+ * sort_filelist,
* GINT_TO_POINTER (sort_mode));
* ]|
*