mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 14:06:15 +01:00
Make g_object_get_data use the new faster g_datalist_get_data
https://bugzilla.gnome.org/show_bug.cgi?id=650458
This commit is contained in:
parent
1cceda49b6
commit
0a918c0d2a
@ -2938,14 +2938,10 @@ gpointer
|
||||
g_object_get_data (GObject *object,
|
||||
const gchar *key)
|
||||
{
|
||||
GQuark quark;
|
||||
|
||||
g_return_val_if_fail (G_IS_OBJECT (object), NULL);
|
||||
g_return_val_if_fail (key != NULL, NULL);
|
||||
|
||||
quark = g_quark_try_string (key);
|
||||
|
||||
return quark ? g_datalist_id_get_data (&object->qdata, quark) : NULL;
|
||||
return g_datalist_get_data (&object->qdata, key);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user