summaryrefslogtreecommitdiff
path: root/json-glib/json-reader.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-reader.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-reader.c')
-rw-r--r--json-glib/json-reader.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/json-glib/json-reader.c b/json-glib/json-reader.c
index 8da7e5e..73e0ea3 100644
--- a/json-glib/json-reader.c
+++ b/json-glib/json-reader.c
@@ -329,7 +329,7 @@ json_reader_set_error (JsonReader *reader,
*
* Since: 0.12
*/
-G_CONST_RETURN GError *
+const GError *
json_reader_get_error (JsonReader *reader)
{
g_return_val_if_fail (JSON_IS_READER (reader), FALSE);
@@ -852,7 +852,7 @@ json_reader_get_double_value (JsonReader *reader)
*
* Since: 0.12
*/
-G_CONST_RETURN gchar *
+const gchar *
json_reader_get_string_value (JsonReader *reader)
{
g_return_val_if_fail (JSON_IS_READER (reader), NULL);
@@ -924,7 +924,7 @@ json_reader_get_null_value (JsonReader *reader)
*
* Since: 0.14
*/
-G_CONST_RETURN gchar *
+const gchar *
json_reader_get_member_name (JsonReader *reader)
{
g_return_val_if_fail (JSON_IS_READER (reader), NULL);