]> granicus.if.org Git - graphviz/commitdiff
GDK plugin: remove unnecessary casts
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 19 Jul 2022 03:00:16 +0000 (20:00 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 26 Jul 2022 02:01:28 +0000 (19:01 -0700)
plugin/gdk/gvloadimage_gdk.c

index b6356b919d37de582dd7ba384c5b6f709a3257a2..da63c856f6af944378150c085b5ed5a5bb397ea6 100644 (file)
@@ -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 */