[libgda/LIBGDA_4.2] Replace G_CONST_RETURN with const.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda/LIBGDA_4.2] Replace G_CONST_RETURN with const.
- Date: Fri, 8 Jul 2011 07:00:53 +0000 (UTC)
commit 4cccf28b0897e3c1338ddf6d2c250ef938c79660
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Jul 8 08:59:06 2011 +0200
Replace G_CONST_RETURN with const.
* libgda/gda-value.[h|c]: G_CONST_RETURN is now deprecated, and
was just a const keyword anyway.
libgda-4.2 is still in wide use, alongside a newer glib, so this
is a useful change.
libgda/gda-value.c | 2 +-
libgda/gda-value.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgda/gda-value.c b/libgda/gda-value.c
index 129e110..e9436e0 100644
--- a/libgda/gda-value.c
+++ b/libgda/gda-value.c
@@ -1625,7 +1625,7 @@ gda_value_set_geometric_point (GValue *value, const GdaGeometricPoint *val)
*
* Returns: (transfer none): the value stored in @value.
*/
-G_CONST_RETURN GdaValueList *
+const GdaValueList *
gda_value_get_list (const GValue *value)
{
g_return_val_if_fail (value && G_IS_VALUE (value), NULL);
diff --git a/libgda/gda-value.h b/libgda/gda-value.h
index 902931a..738f04c 100644
--- a/libgda/gda-value.h
+++ b/libgda/gda-value.h
@@ -145,7 +145,7 @@ void gda_value_take_blob (GValue *value, GdaBlob *b
const GdaGeometricPoint *gda_value_get_geometric_point (const GValue *value);
void gda_value_set_geometric_point (GValue *value, const GdaGeometricPoint *val);
-G_CONST_RETURN GdaValueList *gda_value_get_list (const GValue *value);
+const GdaValueList *gda_value_get_list (const GValue *value);
void gda_value_set_list (GValue *value, const GdaValueList *val);
void gda_value_set_null (GValue *value);
const GdaNumeric *gda_value_get_numeric (const GValue *value);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]