[gnumeric] Compilation: constify value_new_cellrange_parsepos_str.



commit 094f8242ec15ceae65c0e0c2888bcc4e4a22cfe1
Author: Morten Welinder <terra gnome org>
Date:   Sat Feb 26 08:41:42 2011 -0500

    Compilation: constify value_new_cellrange_parsepos_str.

 ChangeLog   |    4 ++++
 src/value.c |    2 +-
 src/value.h |    3 ++-
 3 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 6e107d6..3d695d3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-02-26  Morten Welinder  <terra gnome org>
+
+	* src/value.c (value_new_cellrange_parsepos_str): Constify.
+
 2011-02-24  Morten Welinder  <terra gnome org>
 
 	* src/wbc-gtk.c (cb_set_toolbar_position): Only actually set
diff --git a/src/value.c b/src/value.c
index bd47ad1..26fd500 100644
--- a/src/value.c
+++ b/src/value.c
@@ -371,7 +371,7 @@ value_new_cellrange_str (Sheet *sheet, char const *str)
  * succesfully parsed or NULL on failure.
  */
 GnmValue *
-value_new_cellrange_parsepos_str (GnmParsePos *pp, char const *str,
+value_new_cellrange_parsepos_str (GnmParsePos const *pp, char const *str,
 				  GnmExprParseFlags flags)
 {
 	GnmExprTop const *texpr;
diff --git a/src/value.h b/src/value.h
index 5aee330..5d9ffad 100644
--- a/src/value.h
+++ b/src/value.h
@@ -120,7 +120,8 @@ GnmValue *value_new_cellrange        (GnmCellRef const *a, GnmCellRef const *b,
 				      int eval_col, int eval_row);
 GnmValue *value_new_cellrange_r      (Sheet *sheet, GnmRange const *r);
 GnmValue *value_new_cellrange_str    (Sheet *sheet, char const *str);
-GnmValue *value_new_cellrange_parsepos_str (GnmParsePos *pp, char const *str,
+GnmValue *value_new_cellrange_parsepos_str (GnmParsePos const *pp,
+					    char const *str,
 					    GnmExprParseFlags flags);
 GnmValue *value_new_array            (guint cols, guint rows);
 GnmValue *value_new_array_empty      (guint cols, guint rows);



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