[glib] Drop a few more G_CONST_RETURN
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Drop a few more G_CONST_RETURN
- Date: Mon, 13 Jun 2011 13:26:30 +0000 (UTC)
commit ce9681b87e64a53a35a3db25cdbc406f46e91602
Author: Ryan Lortie <desrt desrt ca>
Date: Mon Jun 13 09:27:28 2011 -0400
Drop a few more G_CONST_RETURN
gobject/gvaluetypes.c | 2 +-
tests/testglib.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gobject/gvaluetypes.c b/gobject/gvaluetypes.c
index df3ef54..bff6592 100644
--- a/gobject/gvaluetypes.c
+++ b/gobject/gvaluetypes.c
@@ -1074,7 +1074,7 @@ g_value_take_string (GValue *value,
*
* Returns: string content of @value
*/
-G_CONST_RETURN gchar*
+const gchar*
g_value_get_string (const GValue *value)
{
g_return_val_if_fail (G_VALUE_HOLDS_STRING (value), NULL);
diff --git a/tests/testglib.c b/tests/testglib.c
index fd894e1..1f0a9ab 100644
--- a/tests/testglib.c
+++ b/tests/testglib.c
@@ -745,7 +745,7 @@ test_info (void)
g_free (sconfdirs);
g_free (langnames);
- charset_is_utf8 = g_get_charset ((G_CONST_RETURN char**)&charset);
+ charset_is_utf8 = g_get_charset ((const char**)&charset);
if (g_test_verbose())
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]