[glib] Make g_object_get_data use the new faster g_datalist_get_data
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Make g_object_get_data use the new faster g_datalist_get_data
- Date: Sat, 4 Jun 2011 01:14:47 +0000 (UTC)
commit 0a918c0d2a9af992fd100f5608783cffa1a752fc
Author: Alexander Larsson <alexl redhat com>
Date: Thu May 19 21:55:16 2011 +0200
Make g_object_get_data use the new faster g_datalist_get_data
https://bugzilla.gnome.org/show_bug.cgi?id=650458
gobject/gobject.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/gobject/gobject.c b/gobject/gobject.c
index da29657..85e3b76 100644
--- a/gobject/gobject.c
+++ b/gobject/gobject.c
@@ -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);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]