[libgda/LIBGDA_4.2] Replace G_CONST_RETURN with const.
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda/LIBGDA_4.2] Replace G_CONST_RETURN with const.
- Date: Thu, 16 Jun 2011 19:04:43 +0000 (UTC)
commit 5e44464a1ff321ad1694f4d38c46a5bd9140f7d7
Author: Murray Cumming <murrayc murrayc com>
Date: Wed Jun 15 08:50:08 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/gda-value.c | 8 ++++----
libgda/gda-value.h | 12 ++++++------
2 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/libgda/gda-value.c b/libgda/gda-value.c
index 8890e60..129e110 100644
--- a/libgda/gda-value.c
+++ b/libgda/gda-value.c
@@ -1476,7 +1476,7 @@ gda_value_copy (const GValue *value)
*
* Returns: (transfer none): the value stored in @value.
*/
-G_CONST_RETURN GdaBinary *
+const GdaBinary *
gda_value_get_binary (const GValue *value)
{
GdaBinary *val;
@@ -1555,7 +1555,7 @@ gda_value_set_blob (GValue *value, const GdaBlob *blob)
*
* Returns: (transfer none): the value stored in @value.
*/
-G_CONST_RETURN GdaBlob *
+const GdaBlob *
gda_value_get_blob (const GValue *value)
{
GdaBlob *val;
@@ -1593,7 +1593,7 @@ gda_value_take_blob (GValue *value, GdaBlob *blob)
*
* Returns: (transfer none): the value stored in @value.
*/
-G_CONST_RETURN GdaGeometricPoint *
+const GdaGeometricPoint *
gda_value_get_geometric_point (const GValue *value)
{
g_return_val_if_fail (value && G_IS_VALUE (value), NULL);
@@ -1673,7 +1673,7 @@ gda_value_set_null (GValue *value)
*
* Returns: (transfer none): the value stored in @value.
*/
-G_CONST_RETURN GdaNumeric *
+const GdaNumeric *
gda_value_get_numeric (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 2bb21b7..902931a 100644
--- a/libgda/gda-value.h
+++ b/libgda/gda-value.h
@@ -135,28 +135,28 @@ gboolean gda_value_is_null (const GValue *value);
gboolean gda_value_is_number (const GValue *value);
GValue *gda_value_copy (const GValue *value);
-G_CONST_RETURN GdaBinary *gda_value_get_binary (const GValue *value);
+const GdaBinary *gda_value_get_binary (const GValue *value);
void gda_value_set_binary (GValue *value, const GdaBinary *binary);
void gda_value_take_binary (GValue *value, GdaBinary *binary);
-G_CONST_RETURN GdaBlob *gda_value_get_blob (const GValue *value);
+const GdaBlob *gda_value_get_blob (const GValue *value);
void gda_value_set_blob (GValue *value, const GdaBlob *blob);
void gda_value_take_blob (GValue *value, GdaBlob *blob);
-G_CONST_RETURN GdaGeometricPoint *gda_value_get_geometric_point (const GValue *value);
+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);
void gda_value_set_list (GValue *value, const GdaValueList *val);
void gda_value_set_null (GValue *value);
-G_CONST_RETURN GdaNumeric *gda_value_get_numeric (const GValue *value);
+const GdaNumeric *gda_value_get_numeric (const GValue *value);
void gda_value_set_numeric (GValue *value, const GdaNumeric *val);
gshort gda_value_get_short (const GValue *value);
void gda_value_set_short (GValue *value, const gshort val);
gushort gda_value_get_ushort (const GValue *value);
void gda_value_set_ushort (GValue *value, const gushort val);
-G_CONST_RETURN GdaTime *gda_value_get_time (const GValue *value);
+const GdaTime *gda_value_get_time (const GValue *value);
void gda_value_set_time (GValue *value, const GdaTime *val);
-G_CONST_RETURN GdaTimestamp *gda_value_get_timestamp (const GValue *value);
+const GdaTimestamp *gda_value_get_timestamp (const GValue *value);
void gda_value_set_timestamp (GValue *value, const GdaTimestamp *val);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]