From: Matthew Fernandez Date: Sat, 2 Apr 2022 19:34:36 +0000 (-0700) Subject: GTK plugin: remove unnecessary casts X-Git-Tag: 4.0.0~135^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3f9b371655ac82706414ef570eb95b381bcf9ed3;p=graphviz GTK plugin: remove unnecessary casts --- diff --git a/plugin/gtk/support.c b/plugin/gtk/support.c index f26a24e77..b44113efe 100644 --- a/plugin/gtk/support.c +++ b/plugin/gtk/support.c @@ -19,14 +19,13 @@ lookup_widget (GtkWidget *widget, else parent = widget->parent; if (!parent) - parent = (GtkWidget*) g_object_get_data (G_OBJECT (widget), "GladeParentKey"); + parent = g_object_get_data(G_OBJECT(widget), "GladeParentKey"); if (parent == NULL) break; widget = parent; } - found_widget = (GtkWidget*) g_object_get_data (G_OBJECT (widget), - widget_name); + found_widget = g_object_get_data(G_OBJECT(widget), widget_name); if (!found_widget) g_warning ("Widget not found: %s", widget_name); return found_widget;