mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
autocleanups: Remove g_autoptr(gchar)
- It's not sufficient, there are other bare array types like guint8, gdouble, etc. - Other types like GVariant* always come as pointers, whereas there's a rather fundamental distinction between "gchar" and "gchar*" that has been signified to C programmers for 30+ years via the '*' character, and we're hiding that. https://bugzilla.gnome.org/show_bug.cgi?id=744747
This commit is contained in:
parent
d0105f1c08
commit
1b348a876f
@ -49,7 +49,6 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC(GMainLoop, g_main_loop_unref)
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GSource, g_source_unref)
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GMappedFile, g_mapped_file_unref)
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GMarkupParseContext, g_markup_parse_context_unref)
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC(gchar, g_free)
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GNode, g_node_destroy)
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GOptionContext, g_option_context_free)
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GOptionGroup, g_option_group_unref)
|
||||
|
Loading…
Reference in New Issue
Block a user