Commit 749929f2 authored by Morten Welinder's avatar Morten Welinder

Compilation: avoid double ;;

parent a3e0b8b9
......@@ -2581,7 +2581,7 @@ xlsx_vml_client_data (GsfXMLIn *xin, G_GNUC_UNUSED GsfXMLBlob *blob)
double coords[4];
int default_size = sheet_col_get_default_size_pixels (state->sheet);
int pos, sum, size;
for (pos = 0, sum = 0;;pos++) {
for (pos = 0, sum = 0; /* no test */; pos++) {
cri = sheet_col_get (state->sheet, pos);
size = (cri)? cri->size_pixels: default_size;
if (sum + size > state->chart_pos[0])
......@@ -2601,7 +2601,7 @@ xlsx_vml_client_data (GsfXMLIn *xin, G_GNUC_UNUSED GsfXMLBlob *blob)
r.end.col = pos;
coords[2] = (state->chart_pos[2] - sum) / size;
default_size = sheet_row_get_default_size_pixels (state->sheet);
for (pos = 0, sum = 0;;pos++) {
for (pos = 0, sum = 0; /* no test */; pos++) {
cri = sheet_row_get (state->sheet, pos);
size = (cri)? cri->size_pixels: default_size;
if (sum + size > state->chart_pos[1])
......
......@@ -1141,7 +1141,7 @@ xlsx_write_init_row (gboolean *needs_row, GsfXMLOut *xml, int r, char const *spa
if (*needs_row) {
gsf_xml_out_start_element (xml, "row");
gsf_xml_out_add_int (xml, "r", r+1);
gsf_xml_out_add_cstr_unchecked (xml, "spans", span);;
gsf_xml_out_add_cstr_unchecked (xml, "spans", span);
*needs_row = FALSE;
}
}
......
......@@ -100,7 +100,7 @@ gnm_owent (gnm_float h, gnm_float a)
{
gnm_float h1 = 0.5 * a;
as *= 0.25;
for (;;)
while (1)
{
gnm_float rt = as + 1.0;
h2 = h1 + (hs * as + LIM3 - log(rt))
......
......@@ -957,7 +957,7 @@ gnumeric_randstdist (GnmFuncEvalInfo *ei, GnmValue const * const *argv)
gnm_float alpha = argv[1] ? value_get_as_float (argv[1]) : 0.;
return ((alpha == 0.) ? value_new_float (random_tdist (nu))
: value_new_float (random_skew_tdist (nu, alpha)));;
: value_new_float (random_skew_tdist (nu, alpha)));
}
/***************************************************************************/
......
......@@ -25,7 +25,7 @@ while (@ARGV) {
push @cmd, $arg;
if ($arg eq '-o') {
$target = shift @ARGV;;
$target = shift @ARGV;
if ($target =~ /\.lo$/) {
$tmptarget = $target;
$tmptarget =~ s/\.lo$/-tmp.o/;
......
......@@ -2070,7 +2070,7 @@ cmd_resize_colrow (WorkbookControl *wbc, Sheet *sheet,
}
g_string_free (list, TRUE);
saved_state = colrow_get_sizes (sheet, is_cols, selection, new_size);;
saved_state = colrow_get_sizes (sheet, is_cols, selection, new_size);
undo = gnm_undo_colrow_restore_state_group_new
(sheet, is_cols, colrow_index_list_copy (selection), saved_state);
......@@ -2098,7 +2098,7 @@ cmd_autofit_selection (WorkbookControl *wbc, SheetView *sv, Sheet *sheet, gboole
g_free (names);
saved_state = colrow_get_sizes (sheet, fit_width, selectionlist, -1);;
saved_state = colrow_get_sizes (sheet, fit_width, selectionlist, -1);
undo = gnm_undo_colrow_restore_state_group_new
(sheet, fit_width, colrow_index_list_copy (selectionlist), saved_state);
......@@ -2908,8 +2908,8 @@ typedef struct {
gboolean only_objects;
ColRowStateGroup *saved_sizes_rows;
ColRowStateGroup *saved_sizes_cols;
ColRowIndexList *saved_list_rows;;
ColRowIndexList *saved_list_cols;;
ColRowIndexList *saved_list_rows;
ColRowIndexList *saved_list_cols;
gboolean single_merge_to_single_merge;
} CmdPasteCopy;
......@@ -6986,7 +6986,7 @@ cmd_so_graph_config (WorkbookControl *wbc, SheetObject *so,
me->old_graph = GOG_GRAPH (o_graph);
g_object_ref (me->old_graph);
me->cmd.sheet = sheet_object_get_sheet (so);;
me->cmd.sheet = sheet_object_get_sheet (so);
me->cmd.size = 10;
me->cmd.cmd_descriptor = g_strdup (_("Reconfigure Graph"));
......@@ -7056,7 +7056,7 @@ cmd_so_component_config (WorkbookControl *wbc, SheetObject *so,
me->new_obj = GO_COMPONENT (g_object_ref (n_obj));
me->old_obj = GO_COMPONENT (g_object_ref (o_obj));
me->cmd.sheet = sheet_object_get_sheet (so);;
me->cmd.sheet = sheet_object_get_sheet (so);
me->cmd.size = 10;
me->cmd.cmd_descriptor = g_strdup (_("Reconfigure Object"));
......
......@@ -1037,7 +1037,7 @@ cb_name_guru_selection_function (G_GNUC_UNUSED GtkTreeSelection *selection,
if (path_currently_selected)
return TRUE;
if (gtk_tree_model_get_iter (model, &iter, path)) {
gboolean is_pastable, is_editable;;
gboolean is_pastable, is_editable;
gtk_tree_model_get (model,
&iter,
ITEM_PASTABLE, &is_pastable,
......
......@@ -1455,7 +1455,7 @@ gnm_float
random_skew_tdist (gnm_float nu, gnm_float a)
{
gnm_float chi = random_chisq (nu);
gnm_float z = random_skew_normal (a);;
gnm_float z = random_skew_normal (a);
return (z * gnm_sqrt(nu/chi));
}
......
......@@ -599,7 +599,7 @@ gnm_rendered_value_get_text (GnmRenderedValue const *rv)
GOColor
gnm_rendered_value_get_color (GnmRenderedValue const * rv)
{
return rv->go_fore_color;;
return rv->go_fore_color;
}
/* ------------------------------------------------------------------------- */
......
......@@ -321,7 +321,7 @@ static void
gnm_soc_copy (SheetObject *dst, SheetObject const *src)
{
SheetObjectComponent *soc = SHEET_OBJECT_COMPONENT (src);
GOComponent *component = go_component_duplicate (soc->component);;
GOComponent *component = go_component_duplicate (soc->component);
sheet_object_component_set_component (dst, component);
g_object_unref (component);
}
......
......@@ -5346,7 +5346,7 @@ sheet_move_range (GnmExprRelocateInfo const *rinfo,
else
invalid = g_slist_append (NULL, gnm_range_dup (&dst));
reloc_info.origin_sheet = reloc_info.target_sheet = rinfo->target_sheet;;
reloc_info.origin_sheet = reloc_info.target_sheet = rinfo->target_sheet;
/* send to infinity to invalidate, but try to assist
* the relocation heuristics only move in 1
......
......@@ -2695,7 +2695,7 @@ analysis_tool_ftest_engine_run (data_analysis_output_t *dao,
/* P two-tail */
{
GnmFunc *fd_min = gnm_func_lookup_or_add_placeholder ("MIN");;
GnmFunc *fd_min = gnm_func_lookup_or_add_placeholder ("MIN");
gnm_func_ref (fd_min);
......
......@@ -190,7 +190,7 @@ dao_command_descriptor (data_analysis_output_t *dao, char const *format,
rangename = dao_range_name (dao);
*text = g_strdup_printf (format, rangename);
g_free (rangename);
break;;
break;
}
return *text;
}
......
......@@ -221,7 +221,7 @@ do_tabulation (WorkbookControl *wbc,
range.start.col = 0;
range.start.row = 0;
range.end.col = 0;
range.end.row = counts[0];;
range.end.row = counts[0];
border = gnm_style_border_fetch (GNM_STYLE_BORDER_MEDIUM,
style_color_black (),
......
......@@ -239,7 +239,7 @@ static GNM_ACTION_DEF (cb_file_print_area_set)
char *message;
char * selection;
GnmRange const *r = selection_first_range (sv,
GO_CMD_CONTEXT (wbcg), _("Set Print Area"));;
GO_CMD_CONTEXT (wbcg), _("Set Print Area"));
if (r != NULL) {
parse_pos_init_sheet (&pp, sheet);
selection = undo_range_name (sheet, r);
......@@ -399,7 +399,7 @@ static GNM_ACTION_DEF (cb_edit_delete_links)
gchar const *format;
gchar *name;
WorkbookControl *wbc = WORKBOOK_CONTROL (wbcg);
Sheet *sheet = wb_control_cur_sheet (wbc);;
Sheet *sheet = wb_control_cur_sheet (wbc);
for (l = scg_view (scg)->selections; l != NULL; l = l->next) {
GnmRange const *r = l->data;
......
......@@ -165,7 +165,7 @@ workbook_cmd_wrap_sort (WorkbookControl *wbc, int type)
struct workbook_cmd_wrap_sort_t cl = {NULL, NULL, NULL};
cl.r = selection_first_range
(sv, GO_CMD_CONTEXT (wbc), _("Wrap SORT"));;
(sv, GO_CMD_CONTEXT (wbc), _("Wrap SORT"));
cl.wb = wb_control_get_workbook (wbc);
if (g_slist_length (l) > 1) {
......
......@@ -474,7 +474,7 @@ sub test_ssindex {
}
}
local $_ = \@items;;
local $_ = \@items;
if (&$test ($_)) {
print STDERR "Pass\n";
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment