[gnumeric] cleanup: remove obsolete casts.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] cleanup: remove obsolete casts.
- Date: Wed, 29 Sep 2010 19:01:44 +0000 (UTC)
commit 777166d5442daf9fb35daffaad96cbd0bfd2f814
Author: Morten Welinder <terra gnome org>
Date: Wed Sep 29 15:01:29 2010 -0400
cleanup: remove obsolete casts.
src/gnm-sheet-slicer.c | 6 +++---
src/search.c | 6 +++---
src/stf-export.c | 10 +++++-----
src/tools/gnm-solver.c | 36 ++++++++++++++++++------------------
4 files changed, 29 insertions(+), 29 deletions(-)
---
diff --git a/src/gnm-sheet-slicer.c b/src/gnm-sheet-slicer.c
index a78db51..b8c43d1 100644
--- a/src/gnm-sheet-slicer.c
+++ b/src/gnm-sheet-slicer.c
@@ -402,9 +402,9 @@ gnm_sheet_slicer_layout_get_type (void)
static GType etype = 0;
if (etype == 0) {
static GEnumValue const values[] = {
- { GSS_Layout_XL_outline, (char *)"GSS_Layout_XL_outline", (char *)"xl-outline" },
- { GSS_Layout_XL_compact, (char *)"GSS_Layout_XL_compact", (char *)"xl-compact" },
- { GSS_Layout_XL_tabular, (char *)"GSS_Layout_XL_tabular", (char *)"xl-tabular" },
+ { GSS_Layout_XL_outline, "GSS_Layout_XL_outline", "xl-outline" },
+ { GSS_Layout_XL_compact, "GSS_Layout_XL_compact", "xl-compact" },
+ { GSS_Layout_XL_tabular, "GSS_Layout_XL_tabular", "xl-tabular" },
{ 0, NULL, NULL }
};
etype = g_enum_register_static ("GnmSheetSlicerLayout", values);
diff --git a/src/search.c b/src/search.c
index c658e84..9ca2ea2 100644
--- a/src/search.c
+++ b/src/search.c
@@ -484,9 +484,9 @@ gnm_search_replace_scope_get_type (void)
static GType etype = 0;
if (etype == 0) {
static const GEnumValue values[] = {
- { GNM_SRS_WORKBOOK, (char *)"GNM_SRS_WORKBOOK", (char *)"workbook" },
- { GNM_SRS_SHEET, (char *)"GNM_SRS_SHEET", (char *)"sheet" },
- { GNM_SRS_RANGE, (char *)"GNM_SRS_RANGE", (char *)"range" },
+ { GNM_SRS_WORKBOOK, "GNM_SRS_WORKBOOK", "workbook" },
+ { GNM_SRS_SHEET, "GNM_SRS_SHEET", "sheet" },
+ { GNM_SRS_RANGE, "GNM_SRS_RANGE", "range" },
{ 0, NULL, NULL }
};
etype = g_enum_register_static ("GnmSearchReplaceScope", values);
diff --git a/src/stf-export.c b/src/stf-export.c
index c9dfc49..d052873 100644
--- a/src/stf-export.c
+++ b/src/stf-export.c
@@ -418,8 +418,8 @@ gnm_stf_transliterate_mode_get_type (void)
static GType etype = 0;
if (etype == 0) {
static GEnumValue const values[] = {
- { GNM_STF_TRANSLITERATE_MODE_TRANS, (char*)"GNM_STF_TRANSLITERATE_MODE_TRANS", (char*)"transliterate" },
- { GNM_STF_TRANSLITERATE_MODE_ESCAPE, (char*)"GNM_STF_TRANSLITERATE_MODE_ESCAPE", (char*)"escape" },
+ { GNM_STF_TRANSLITERATE_MODE_TRANS, "GNM_STF_TRANSLITERATE_MODE_TRANS", "transliterate" },
+ { GNM_STF_TRANSLITERATE_MODE_ESCAPE, "GNM_STF_TRANSLITERATE_MODE_ESCAPE", "escape" },
{ 0, NULL, NULL }
};
etype = g_enum_register_static ("GnmStfTransliterateMode", values);
@@ -435,9 +435,9 @@ gnm_stf_format_mode_get_type (void)
static GType etype = 0;
if (etype == 0) {
static GEnumValue const values[] = {
- { GNM_STF_FORMAT_AUTO, (char*)"GNM_STF_FORMAT_AUTO", (char*)"automatic" },
- { GNM_STF_FORMAT_RAW, (char*)"GNM_STF_FORMAT_RAW", (char*)"raw" },
- { GNM_STF_FORMAT_PRESERVE, (char*)"GNM_STF_FORMAT_PRESERVE", (char*)"preserve" },
+ { GNM_STF_FORMAT_AUTO, "GNM_STF_FORMAT_AUTO", "automatic" },
+ { GNM_STF_FORMAT_RAW, "GNM_STF_FORMAT_RAW", "raw" },
+ { GNM_STF_FORMAT_PRESERVE, "GNM_STF_FORMAT_PRESERVE", "preserve" },
{ 0, NULL, NULL }
};
etype = g_enum_register_static ("GnmStfFormatMode", values);
diff --git a/src/tools/gnm-solver.c b/src/tools/gnm-solver.c
index 79df765..1c70e01 100644
--- a/src/tools/gnm-solver.c
+++ b/src/tools/gnm-solver.c
@@ -52,32 +52,32 @@ gnm_solver_status_get_type (void)
if (etype == 0) {
static GEnumValue const values[] = {
{ GNM_SOLVER_STATUS_READY,
- (char *)"GNM_SOLVER_STATUS_READY",
- (char *)"ready"
+ "GNM_SOLVER_STATUS_READY",
+ "ready"
},
{ GNM_SOLVER_STATUS_PREPARING,
- (char *)"GNM_SOLVER_STATUS_PREPARING",
- (char *)"preparing"
+ "GNM_SOLVER_STATUS_PREPARING",
+ "preparing"
},
{ GNM_SOLVER_STATUS_PREPARED,
- (char *)"GNM_SOLVER_STATUS_PREPARED",
- (char *)"prepared"
+ "GNM_SOLVER_STATUS_PREPARED",
+ "prepared"
},
{ GNM_SOLVER_STATUS_RUNNING,
- (char *)"GNM_SOLVER_STATUS_RUNNING",
- (char *)"running"
+ "GNM_SOLVER_STATUS_RUNNING",
+ "running"
},
{ GNM_SOLVER_STATUS_DONE,
- (char *)"GNM_SOLVER_STATUS_DONE",
- (char *)"done"
+ "GNM_SOLVER_STATUS_DONE",
+ "done"
},
{ GNM_SOLVER_STATUS_ERROR,
- (char *)"GNM_SOLVER_STATUS_ERROR",
- (char *)"error"
+ "GNM_SOLVER_STATUS_ERROR",
+ "error"
},
{ GNM_SOLVER_STATUS_CANCELLED,
- (char *)"GNM_SOLVER_STATUS_CANCELLED",
- (char *)"cancelled"
+ "GNM_SOLVER_STATUS_CANCELLED",
+ "cancelled"
},
{ 0, NULL, NULL }
};
@@ -93,12 +93,12 @@ gnm_solver_problem_type_get_type (void)
if (etype == 0) {
static GEnumValue const values[] = {
{ GNM_SOLVER_MINIMIZE,
- (char *)"GNM_SOLVER_MINIMIZE",
- (char *)"minimize"
+ "GNM_SOLVER_MINIMIZE",
+ "minimize"
},
{ GNM_SOLVER_MAXIMIZE,
- (char *)"GNM_SOLVER_MAXIMIZE",
- (char *)"maximize"
+ "GNM_SOLVER_MAXIMIZE",
+ "maximize"
},
{ 0, NULL, NULL }
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]