mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 05:56:14 +01:00
Fix g_type_add_class_private() name in g_warning
When g_type_class_get_private is called without calling g_type_add_class_private first, a g_warning is issued, but the name of the function to call is wrong: g_type_class_add_class_private. https://bugzilla.gnome.org/show_bug.cgi?id=690348
This commit is contained in:
parent
df334d6e00
commit
b055c82815
@ -4671,7 +4671,7 @@ g_type_class_get_private (GTypeClass *klass,
|
||||
|
||||
if (G_UNLIKELY (private_node->data->class.class_private_size == parent_node->data->class.class_private_size))
|
||||
{
|
||||
g_warning ("g_type_instance_get_class_private() requires a prior call to g_type_class_add_class_private()");
|
||||
g_warning ("g_type_instance_get_class_private() requires a prior call to g_type_add_class_private()");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user