Commit be0fe173 authored by Christoffer Ackelman's avatar Christoffer Ackelman

Fixed warning about empty if statements

parent 70602f40
......@@ -869,12 +869,12 @@ int CnvReadWbl::graphplcnode_attr(char* name, char* value)
strcat(doc_text[doc_cnt - 1], " (document)");
else if (streq(value, "7"))
strcat(doc_text[doc_cnt - 1], " (Get,Set)");
} else if (streq(low(name), "compmethod"))
} /* else if (streq(low(name), "compmethod"))
;
else if (streq(low(name), "tracemethod"))
;
else if (streq(low(name), "executeordermethod"))
;
; */
return 1;
}
......@@ -896,6 +896,7 @@ int CnvReadWbl::graphplccon_attr(char* name, char* value)
strcpy(doc_text[doc_cnt++], value);
// Description
/*
if (streq(low(name), "curvature"))
;
else if (streq(low(name), "corners"))
......@@ -904,6 +905,7 @@ int CnvReadWbl::graphplccon_attr(char* name, char* value)
;
else if (streq(low(name), "attributes"))
;
*/
return 1;
}
......
......@@ -1629,8 +1629,8 @@ struct register_info {
if (stack_last_malloced != NULL) \
free(stack_last_malloced); \
stack_last_malloced = stackx; \
if (stackx == NULL) \
; /* left to do */ \
/* if (stackx == NULL) \
; // left to do */ \
/* end of change */ \
/* Only copy what is in use. */ \
bcopy(stackb, stackx, len * sizeof(char*)); \
......
......@@ -296,10 +296,12 @@ void GeCurveGtk::activate_filledcurves(GtkWidget* w, gpointer data)
GeCurve* curve = (GeCurve*)data;
int set;
if (w == ((GeCurveGtk*)curve)->tools_curve_fill)
set = curve->fill_curves = !curve->fill_curves;
else
if (w == ((GeCurveGtk*)curve)->tools_curve_fill) {
curve->fill_curves = !curve->fill_curves;
set = curve->fill_curves;
} else {
set = (int)gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(w));
}
curve->activate_filledcurves(set);
}
......
......@@ -253,7 +253,8 @@ void GeCurveQtWidget::activate_showname()
void GeCurveQtWidget::activate_filledcurves(bool set)
{
if (sender() == ((GeCurveQt*)curve)->tools_curve_fill) {
set = curve->fill_curves = !curve->fill_curves;
curve->fill_curves = !curve->fill_curves;
set = curve->fill_curves;
} else {
set = ((QAction*)sender())->isChecked();
}
......
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