[gnumeric] compilation: drop a few more casts.



commit f9b9e1a78a3f4f070cb096efb42f38aee0129cb0
Author: Morten Welinder <terra gnome org>
Date:   Fri Nov 19 13:17:12 2010 -0500

    compilation: drop a few more casts.

 plugins/excel/ms-chart.c |    2 +-
 src/commands.c           |    6 ++++--
 2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/plugins/excel/ms-chart.c b/plugins/excel/ms-chart.c
index caba046..3f56079 100644
--- a/plugins/excel/ms-chart.c
+++ b/plugins/excel/ms-chart.c
@@ -5825,7 +5825,7 @@ ms_excel_chart_write (ExcelWriteState *ewb, SheetObject *so)
 				(GCompareFunc) cb_axis_set_cmp);
 			if (ptr != NULL) {
 				g_free (axis_set);
-				axis_set = (XLAxisSet *)(ptr->data);
+				axis_set = ptr->data;
 			} else
 				sets = g_slist_append (sets, axis_set);
 			axis_set->plots = g_slist_append (axis_set->plots, cur_plot);
diff --git a/src/commands.c b/src/commands.c
index c46e17b..4eb589b 100644
--- a/src/commands.c
+++ b/src/commands.c
@@ -3774,9 +3774,11 @@ cmd_unmerge_cells_redo (GnmCommand *cmd, WorkbookControl *wbc)
 		GSList *ptr, *merged = gnm_sheet_merge_get_overlap (me->cmd.sheet,
 			&(g_array_index (me->ranges, GnmRange, i)));
 		for (ptr = merged ; ptr != NULL ; ptr = ptr->next) {
-			GnmRange const tmp = *(GnmRange *)(ptr->data);
+			GnmRange const *pr = ptr->data;
+			GnmRange const tmp = *pr;
 			g_array_append_val (me->unmerged_regions, tmp);
-			gnm_sheet_merge_remove (me->cmd.sheet, &tmp, GO_CMD_CONTEXT (wbc));
+			gnm_sheet_merge_remove (me->cmd.sheet, &tmp,
+						GO_CMD_CONTEXT (wbc));
 			sheet_range_calc_spans (me->cmd.sheet, &tmp,
 						GNM_SPANCALC_RE_RENDER);
 		}



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