From f95e7d530e991da75b7999d578b7ccd1a963d6b5 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Fri, 26 Nov 2021 09:52:11 -0800 Subject: [PATCH] pango plugin: remove unnecessary casts around 'us->data' --- plugin/pango/gvloadimage_pango.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/pango/gvloadimage_pango.c b/plugin/pango/gvloadimage_pango.c index d6af76f93..9e9100c53 100644 --- a/plugin/pango/gvloadimage_pango.c +++ b/plugin/pango/gvloadimage_pango.c @@ -33,7 +33,7 @@ reader (void *closure, unsigned char *data, unsigned int length) static void cairo_freeimage(usershape_t *us) { - cairo_surface_destroy((cairo_surface_t*)(us->data)); + cairo_surface_destroy(us->data); } static cairo_surface_t* cairo_loadimage(GVJ_t * job, usershape_t *us) @@ -47,7 +47,7 @@ static cairo_surface_t* cairo_loadimage(GVJ_t * job, usershape_t *us) if (us->data) { if (us->datafree == cairo_freeimage) - surface = (cairo_surface_t*)(us->data); /* use cached data */ + surface = us->data; /* use cached data */ else { us->datafree(us); /* free incompatible cache data */ us->datafree = NULL; @@ -69,7 +69,7 @@ static cairo_surface_t* cairo_loadimage(GVJ_t * job, usershape_t *us) surface = NULL; } if (surface) { - us->data = (void*)surface; + us->data = surface; us->datafree = cairo_freeimage; } gvusershape_file_release(us); -- 2.40.0