[gnumeric] Compilation: remove GOFormat casts no longer needed.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Compilation: remove GOFormat casts no longer needed.
- Date: Tue, 16 Nov 2010 19:44:42 +0000 (UTC)
commit 0b6f1d6ca0f7c1b979347a1119fa089508cacf5c
Author: Morten Welinder <terra gnome org>
Date: Tue Nov 16 14:44:11 2010 -0500
Compilation: remove GOFormat casts no longer needed.
src/mstyle.c | 2 +-
src/sheet-autofill.c | 4 ++--
src/value.c | 6 +++---
3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/mstyle.c b/src/mstyle.c
index 99b62d5..e117f00 100644
--- a/src/mstyle.c
+++ b/src/mstyle.c
@@ -1309,7 +1309,7 @@ gnm_style_set_format (GnmStyle *style, GOFormat const *format)
g_return_if_fail (format != NULL);
elem_changed (style, MSTYLE_FORMAT);
- go_format_ref ((GOFormat *)format);
+ go_format_ref (format);
elem_clear_contents (style, MSTYLE_FORMAT);
elem_set (style, MSTYLE_FORMAT);
style->format = (GOFormat *)format;
diff --git a/src/sheet-autofill.c b/src/sheet-autofill.c
index af89b23..abea9dd 100644
--- a/src/sheet-autofill.c
+++ b/src/sheet-autofill.c
@@ -173,7 +173,7 @@ afa_teach_cell (AutoFiller *af, const GnmCell *cell, int n)
af->status = AFS_READY;
}
if (VALUE_FMT (value))
- afa->format = go_format_ref ((GOFormat *)VALUE_FMT (value));
+ afa->format = go_format_ref (VALUE_FMT (value));
break;
case 1:
afa->step = f - afa->base;
@@ -556,7 +556,7 @@ afm_teach_cell (AutoFiller *af, const GnmCell *cell, int n)
if (n == 0) {
if (VALUE_FMT (value))
- afm->format = go_format_ref ((GOFormat *)VALUE_FMT (value));
+ afm->format = go_format_ref (VALUE_FMT (value));
afm->base = d;
} else {
int year = g_date_get_year (&d);
diff --git a/src/value.c b/src/value.c
index 0cc81cc..94dbd7e 100644
--- a/src/value.c
+++ b/src/value.c
@@ -528,7 +528,7 @@ value_release (GnmValue *value)
return;
if (VALUE_FMT (value) != NULL)
- go_format_unref ((GOFormat *)VALUE_FMT (value));
+ go_format_unref (VALUE_FMT (value));
switch (value->type) {
case VALUE_EMPTY:
@@ -1322,9 +1322,9 @@ value_set_fmt (GnmValue *v, GOFormat const *fmt)
return;
g_return_if_fail (v->type != VALUE_EMPTY && v->type != VALUE_BOOLEAN);
if (fmt != NULL)
- go_format_ref ((GOFormat *)fmt);
+ go_format_ref (fmt);
if (VALUE_FMT (v) != NULL)
- go_format_unref ((GOFormat *)VALUE_FMT (v));
+ go_format_unref (VALUE_FMT (v));
v->v_any.fmt = (GOFormat *)fmt;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]