From 676592cef006de16d966a1ca0469ccd0556f0e4b Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Sat, 19 Apr 2008 23:09:20 +0100 Subject: Documentation fixes in JsonNode --- json-glib/json-node.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'json-glib/json-node.c') diff --git a/json-glib/json-node.c b/json-glib/json-node.c index 035dd2e..b0f6bef 100644 --- a/json-glib/json-node.c +++ b/json-glib/json-node.c @@ -36,8 +36,8 @@ * When parsing a JSON data stream you extract the root node and walk * the node tree by retrieving the type of data contained inside the * node with the %JSON_NODE_TYPE macro. If the node contains a fundamental - * type you can retrieve a copy of the GValue holding it with the - * json_node_get_value() function, and then use the GValue API to extract + * type you can retrieve a copy of the #GValue holding it with the + * json_node_get_value() function, and then use the #GValue API to extract * the data; if the node contains a complex type you can retrieve the * #JsonObject or the #JsonArray using json_node_get_object() or * json_node_get_array() respectively, and then retrieve the nodes @@ -348,7 +348,7 @@ json_node_get_value (JsonNode *node, g_return_if_fail (node != NULL); g_return_if_fail (JSON_NODE_TYPE (node) == JSON_NODE_VALUE); - if (G_VALUE_TYPE (&(node->data.value)) != 0) + if (G_VALUE_TYPE (&(node->data.value)) != G_TYPE_INVALID) { g_value_init (value, G_VALUE_TYPE (&(node->data.value))); g_value_copy (&(node->data.value), value); -- cgit v1.2.1