mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-01 21:33:09 +02:00
array: Fix handling of user_data in doc-comment
The user_data for g_ptr_array_sort_with_data is passed directly, not with an extra layer of pointer like the data pointers. Signed-off-by: Simon McVittie <smcv@collabora.com> Fixes: 52c130f8
This commit is contained in:
parent
ef6fe191ac
commit
ee13eb518d
@ -1955,11 +1955,11 @@ g_ptr_array_sort (GPtrArray *array,
|
|||||||
* sort_filelist (gconstpointer a, gconstpointer b, gpointer user_data)
|
* sort_filelist (gconstpointer a, gconstpointer b, gpointer user_data)
|
||||||
* {
|
* {
|
||||||
* gint order;
|
* gint order;
|
||||||
* const SortMode *sort_mode = GPOINTER_TO_INT (user_data);
|
* const SortMode sort_mode = GPOINTER_TO_INT (user_data);
|
||||||
* const FileListEntry *entry1 = *((FileListEntry **) a);
|
* const FileListEntry *entry1 = *((FileListEntry **) a);
|
||||||
* const FileListEntry *entry2 = *((FileListEntry **) b);
|
* const FileListEntry *entry2 = *((FileListEntry **) b);
|
||||||
*
|
*
|
||||||
* switch (*sort_mode)
|
* switch (sort_mode)
|
||||||
* {
|
* {
|
||||||
* case SORT_NAME:
|
* case SORT_NAME:
|
||||||
* order = g_ascii_strcasecmp (entry1->name, entry2->name);
|
* order = g_ascii_strcasecmp (entry1->name, entry2->name);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user