From 80665415cd945f3dafed6925c9975f36b916a80f Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Tue, 19 Oct 2010 09:49:05 +0100 Subject: Use G_DEFINE_BOXED_TYPE() --- json-glib/json-node.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'json-glib/json-node.c') diff --git a/json-glib/json-node.c b/json-glib/json-node.c index 6a79c4c..c8763fe 100644 --- a/json-glib/json-node.c +++ b/json-glib/json-node.c @@ -48,18 +48,7 @@ * they contain. */ -GType -json_node_get_type (void) -{ - static GType node_type = 0; - - if (G_UNLIKELY (node_type == 0)) - node_type = g_boxed_type_register_static (g_intern_static_string ("JsonNode"), - (GBoxedCopyFunc) json_node_copy, - (GBoxedFreeFunc) json_node_free); - - return node_type; -} +G_DEFINE_BOXED_TYPE (JsonNode, json_node, json_node_copy, json_node_free); /** * json_node_get_value_type: -- cgit v1.2.1