From: Matthew Fernandez Date: Mon, 28 Feb 2022 02:37:59 +0000 (-0800) Subject: gvc: [nfc] remove unnecessary 'gvplugin_installed_t.engine' casts X-Git-Tag: 4.0.0~198^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cb1393c2a3563aafec1f67668bc12b231f7fe584;p=graphviz gvc: [nfc] remove unnecessary 'gvplugin_installed_t.engine' casts --- diff --git a/lib/gvc/gvlayout.c b/lib/gvc/gvlayout.c index be7fb35a8..2b6dd6353 100644 --- a/lib/gvc/gvlayout.c +++ b/lib/gvc/gvlayout.c @@ -37,7 +37,7 @@ int gvlayout_select(GVC_t * gvc, const char *layout) if (plugin) { typeptr = plugin->typeptr; gvc->layout.type = typeptr->type; - gvc->layout.engine = (gvlayout_engine_t *) (typeptr->engine); + gvc->layout.engine = typeptr->engine; gvc->layout.id = typeptr->id; gvc->layout.features = (gvlayout_features_t *) (typeptr->features); return GVRENDER_PLUGIN; /* FIXME - need better return code */ diff --git a/lib/gvc/gvloadimage.c b/lib/gvc/gvloadimage.c index d4f34d602..8b75c4e86 100644 --- a/lib/gvc/gvloadimage.c +++ b/lib/gvc/gvloadimage.c @@ -35,7 +35,7 @@ static int gvloadimage_select(GVJ_t * job, char *str) plugin = gvplugin_load(job->gvc, API_loadimage, str); if (plugin) { typeptr = plugin->typeptr; - job->loadimage.engine = (gvloadimage_engine_t *) (typeptr->engine); + job->loadimage.engine = typeptr->engine; job->loadimage.id = typeptr->id; return GVRENDER_PLUGIN; } diff --git a/lib/gvc/gvrender.c b/lib/gvc/gvrender.c index 53d18a249..75066ab77 100644 --- a/lib/gvc/gvrender.c +++ b/lib/gvc/gvrender.c @@ -51,7 +51,7 @@ int gvrender_select(GVJ_t * job, const char *str) plugin = gvc->api[API_device]; if (plugin) { typeptr = plugin->typeptr; - job->device.engine = (gvdevice_engine_t *) (typeptr->engine); + job->device.engine = typeptr->engine; job->device.features = (gvdevice_features_t *) (typeptr->features); job->device.id = typeptr->id; job->device.type = plugin->typestr; @@ -65,7 +65,7 @@ int gvrender_select(GVJ_t * job, const char *str) plugin = gvc->api[API_render]; if (plugin) { typeptr = plugin->typeptr; - job->render.engine = (gvrender_engine_t *) (typeptr->engine); + job->render.engine = typeptr->engine; job->render.features = (gvrender_features_t *) (typeptr->features); job->render.type = plugin->typestr; diff --git a/lib/gvc/gvtextlayout.c b/lib/gvc/gvtextlayout.c index c436bc5de..df6b4fce1 100644 --- a/lib/gvc/gvtextlayout.c +++ b/lib/gvc/gvtextlayout.c @@ -28,7 +28,7 @@ int gvtextlayout_select(GVC_t * gvc) plugin = gvplugin_load(gvc, API_textlayout, "textlayout"); if (plugin) { typeptr = plugin->typeptr; - gvc->textlayout.engine = (gvtextlayout_engine_t *) (typeptr->engine); + gvc->textlayout.engine = typeptr->engine; return GVRENDER_PLUGIN; /* FIXME - need more suitable success code */ } return NO_SUPPORT;