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