[gnumeric] Compilation: avoid some casts.



commit dc5aaaccda559eedd7e7fbf8d9282f02000d9a20
Author: Morten Welinder <terra gnome org>
Date:   Thu Jul 12 12:54:56 2012 -0400

    Compilation: avoid some casts.

 src/cell.c |   16 ++++------------
 1 files changed, 4 insertions(+), 12 deletions(-)
---
diff --git a/src/cell.c b/src/cell.c
index 294ec13..7742e2f 100644
--- a/src/cell.c
+++ b/src/cell.c
@@ -1004,16 +1004,8 @@ gnm_cell_convert_expr_to_value (GnmCell *cell)
 	cell->base.texpr = NULL;
 }
 
-static GnmCell *
-cell_copy (GnmCell *cell)
-{
-	return cell;
-}
-
-static void
-cell_free (GnmCell *cell)
-{
-}
+static gpointer cell_boxed_copy (gpointer c) { return c; }
+static void cell_boxed_free (gpointer c) { }
 
 GType
 gnm_cell_get_type (void)
@@ -1023,8 +1015,8 @@ gnm_cell_get_type (void)
     if (!type_cell)
 	type_cell = g_boxed_type_register_static
 	    ("GnmCell",
-	     (GBoxedCopyFunc) cell_copy,
-	     (GBoxedFreeFunc) cell_free);
+	     cell_boxed_copy,
+	     cell_boxed_free);
 
     return type_cell;
 }



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