From: Matthew Fernandez Date: Tue, 19 Jul 2022 03:00:16 +0000 (-0700) Subject: GDK plugin: remove unnecessary casts X-Git-Tag: 5.0.1~30^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8013374f3e8a7c94f1afd2396850a97cc568d07b;p=graphviz GDK plugin: remove unnecessary casts --- diff --git a/plugin/gdk/gvloadimage_gdk.c b/plugin/gdk/gvloadimage_gdk.c index b6356b919..da63c856f 100644 --- a/plugin/gdk/gvloadimage_gdk.c +++ b/plugin/gdk/gvloadimage_gdk.c @@ -104,7 +104,7 @@ static cairo_surface_t* gdk_loadimage(GVJ_t * job, usershape_t *us) #endif /* HAVE_CAIRO_SURFACE_SET_MIME_DATA */ { #ifdef HAVE_CAIRO_SURFACE_SET_MIME_DATA - cairo_t *cr = (cairo_t *) job->context; /* target context */ + cairo_t *cr = job->context; /* target context */ #endif /* HAVE_CAIRO_SURFACE_SET_MIME_DATA */ GdkPixbuf *image = NULL; #ifdef HAVE_CAIRO_SURFACE_SET_MIME_DATA @@ -191,7 +191,7 @@ static void gdk_loadimage_cairo(GVJ_t * job, usershape_t *us, boxf b, bool fille { (void)filled; - cairo_t *cr = (cairo_t *) job->context; /* target context */ + cairo_t *cr = job->context; /* target context */ #ifndef HAVE_CAIRO_SURFACE_SET_MIME_DATA GdkPixbuf *image; #else /* HAVE_CAIRO_SURFACE_SET_MIME_DATA */