[gnumeric] compilation: warning fix.



commit e8bdd865e76ad739e332400ed4073b0b0dd80e49
Author: Morten Welinder <terra gnome org>
Date:   Mon Nov 2 10:06:56 2009 -0500

    compilation: warning fix.

 ChangeLog  |    4 ++++
 src/expr.c |    2 +-
 src/expr.h |    2 +-
 3 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index f076ca8..295ab05 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-11-02  Morten Welinder  <terra gnome org>
+
+	* src/expr.c (gnm_expr_top_get_cellref): Constify.
+
 2009-10-11  Morten Welinder <terra gnome org>
 
 	* configure.in: Post-release bump.
diff --git a/src/expr.c b/src/expr.c
index 213070f..b52ec5b 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -3044,7 +3044,7 @@ gnm_expr_top_get_constant (GnmExprTop const *texpr)
 	return texpr->expr->constant.value;
 }
 
-GnmCellRef *
+GnmCellRef const *
 gnm_expr_top_get_cellref (GnmExprTop const *texpr)
 {
 	g_return_val_if_fail (IS_GNM_EXPR_TOP (texpr), NULL);
diff --git a/src/expr.h b/src/expr.h
index e7782b2..84c295b 100644
--- a/src/expr.h
+++ b/src/expr.h
@@ -140,7 +140,7 @@ gboolean	gnm_expr_top_is_array		(GnmExprTop const *texpr);
 GnmValue       *gnm_expr_top_get_range		(GnmExprTop const *texpr);
 GSList	       *gnm_expr_top_get_ranges		(GnmExprTop const *texpr);
 GnmValue const *gnm_expr_top_get_constant	(GnmExprTop const *texpr);
-GnmCellRef     *gnm_expr_top_get_cellref	(GnmExprTop const *texpr);
+GnmCellRef const*gnm_expr_top_get_cellref	(GnmExprTop const *texpr);
 void		gnm_expr_top_get_boundingbox	(GnmExprTop const *texpr,
 						 Sheet const *sheet,
 						 GnmRange *bound);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]