]> granicus.if.org Git - graphviz/commitdiff
smyrna set_combobox_widget: remove no-op casts
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 24 Dec 2022 22:05:30 +0000 (14:05 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 24 Dec 2022 22:05:30 +0000 (14:05 -0800)
cmd/smyrna/gui/topviewsettings.c

index 2ac2c5acd150b53c1c93b14efa2bcf303511cafc..4b51d0d87327c7d7731b37eb06752758254f2f54 100644 (file)
@@ -267,10 +267,9 @@ static int set_combobox_widget(char *attrib, char *widget_name)
        copy_attr(view->systemGraphs.def_attrs, attrib, view->g[view->activeGraph]);
     }
     if (buf) {
-       value = (int) atoi(buf);
+       value = atoi(buf);
        gtk_combo_box_set_active((GtkComboBox *)
-                                glade_xml_get_widget(xml, widget_name),
-                                (int) value);
+                                glade_xml_get_widget(xml, widget_name), value);
 
        return 1;
     }