mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-07 22:20:05 +02:00
Fix array API inconsistency
g_array_remove_range and g_byte_array_remove_range return a pointer to the array, g_ptr_array_remove_range returns void. Since it is pretty harmless, make it return the array too. https://bugzilla.gnome.org/show_bug.cgi?id=159528
This commit is contained in:
@@ -163,7 +163,7 @@ GLIB_AVAILABLE_IN_ALL
|
||||
gboolean g_ptr_array_remove_fast (GPtrArray *array,
|
||||
gpointer data);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_ptr_array_remove_range (GPtrArray *array,
|
||||
GPtrArray *g_ptr_array_remove_range (GPtrArray *array,
|
||||
guint index_,
|
||||
guint length);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
|
Reference in New Issue
Block a user