summaryrefslogtreecommitdiff
path: root/json-glib/json-node.c
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@linux.intel.com>2011-06-09 17:23:04 +0100
committerEmmanuele Bassi <ebassi@linux.intel.com>2011-06-09 17:23:04 +0100
commitc994a9bfdc13aba1b7c5fd019853c68fb38148a6 (patch)
treedf79e4237727a2586634499bb4294bfad99ac355 /json-glib/json-node.c
parent74bb5d61a737cceffd04c8d9ae8d5db390eda5a2 (diff)
downloadjson-glib-c994a9bfdc13aba1b7c5fd019853c68fb38148a6.tar.gz
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.
Diffstat (limited to 'json-glib/json-node.c')
-rw-r--r--json-glib/json-node.c6
1 files changed, 3 insertions, 3 deletions
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);