[json-glib] Intern the remaining type names
- From: Emmanuele Bassi <ebassi src gnome org>
- To: svn-commits-list gnome org
- Subject: [json-glib] Intern the remaining type names
- Date: Fri, 17 Apr 2009 10:52:56 -0400 (EDT)
commit f2f43d17254317d35ea0cc8206592ecbcb856b68
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Fri Apr 17 15:22:04 2009 +0100
Intern the remaining type names
JsonArray and JsonSerializable type names should be interned like
the rest of the types.
---
json-glib/json-array.c | 2 +-
json-glib/json-gobject.c | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/json-glib/json-array.c b/json-glib/json-array.c
index 0b5d32a..13ac3b8 100644
--- a/json-glib/json-array.c
+++ b/json-glib/json-array.c
@@ -53,7 +53,7 @@ json_array_get_type (void)
static GType array_type = 0;
if (G_UNLIKELY (!array_type))
- array_type = g_boxed_type_register_static ("JsonArray",
+ array_type = g_boxed_type_register_static (g_intern_static_string ("JsonArray"),
(GBoxedCopyFunc) json_array_ref,
(GBoxedFreeFunc) json_array_unref);
diff --git a/json-glib/json-gobject.c b/json-glib/json-gobject.c
index 6eea9a5..0c9351a 100644
--- a/json-glib/json-gobject.c
+++ b/json-glib/json-gobject.c
@@ -515,7 +515,8 @@ json_serializable_get_type (void)
if (!iface_type)
iface_type =
- g_type_register_static_simple (G_TYPE_INTERFACE, "JsonSerializable",
+ g_type_register_static_simple (G_TYPE_INTERFACE,
+ g_intern_static_string ("JsonSerializable"),
sizeof (JsonSerializableIface),
json_serializable_base_init,
0, NULL, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]