mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-03 09:46:17 +01:00
gtype: Fast-path for g_type_is_a
Do I really need to explain why ? https://bugzilla.gnome.org/show_bug.cgi?id=732085
This commit is contained in:
parent
4b5bdf6ceb
commit
3e2735f468
@ -3499,6 +3499,9 @@ g_type_is_a (GType type,
|
||||
{
|
||||
TypeNode *node, *iface_node;
|
||||
gboolean is_a;
|
||||
|
||||
if (type == iface_type)
|
||||
return TRUE;
|
||||
|
||||
node = lookup_type_node_I (type);
|
||||
iface_node = lookup_type_node_I (iface_type);
|
||||
|
Loading…
Reference in New Issue
Block a user