[libgda] Replace G_CONST_RETURN with const.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] Replace G_CONST_RETURN with const.
- Date: Wed, 15 Jun 2011 07:31:54 +0000 (UTC)
commit f5970385081b158104f201764c0582f5f7b4e718
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 20cbbed..fcddcee 100644
--- a/libgda/gda-value.c
+++ b/libgda/gda-value.c
@@ -1454,7 +1454,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;
@@ -1533,7 +1533,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;
@@ -1571,7 +1571,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, NULL);
@@ -1616,7 +1616,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, NULL);
diff --git a/libgda/gda-value.h b/libgda/gda-value.h
index 74ee2d3..fb1c6fd 100644
--- a/libgda/gda-value.h
+++ b/libgda/gda-value.h
@@ -203,26 +203,26 @@ 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);
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]