From c994a9bfdc13aba1b7c5fd019853c68fb38148a6 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Thu, 9 Jun 2011 17:23:04 +0100 Subject: Remove G_CONST_RETURN usage See GLib bug: https://bugzilla.gnome.org/show_bug.cgi?id=644611 The macro is going to be deprecated soon. --- 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 f136b06..67cdc95 100644 --- a/json-glib/json-node.c +++ b/json-glib/json-node.c @@ -451,7 +451,7 @@ json_node_free (JsonNode *node) * Return value: a string containing the name of the type. The returned string * is owned by the node and should never be modified or freed */ -G_CONST_RETURN gchar * +const gchar * json_node_type_name (JsonNode *node) { g_return_val_if_fail (node != NULL, "(null)"); @@ -470,7 +470,7 @@ json_node_type_name (JsonNode *node) return "unknown"; } -G_CONST_RETURN gchar * +const gchar * json_node_type_get_name (JsonNodeType node_type) { switch (node_type) @@ -568,7 +568,7 @@ json_node_set_string (JsonNode *node, * * Return value: a string value. */ -G_CONST_RETURN gchar * +const gchar * json_node_get_string (JsonNode *node) { g_return_val_if_fail (node != NULL, NULL); -- cgit v1.2.1