]> granicus.if.org Git - graphviz/commitdiff
gvc: [nfc] remove unnecessary 'gvplugin_installed_t.features' casts
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 28 Feb 2022 02:39:55 +0000 (18:39 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 5 Mar 2022 19:17:36 +0000 (11:17 -0800)
lib/gvc/gvlayout.c
lib/gvc/gvrender.c

index 2b6dd6353e8ae469b2d5b5ca94a7c96bbd87e9bb..00ae33a4d2a68ca2fc3e03deea894e2341d099f4 100644 (file)
@@ -39,7 +39,7 @@ int gvlayout_select(GVC_t * gvc, const char *layout)
        gvc->layout.type = typeptr->type;
        gvc->layout.engine = typeptr->engine;
        gvc->layout.id = typeptr->id;
-       gvc->layout.features = (gvlayout_features_t *) (typeptr->features);
+       gvc->layout.features = typeptr->features;
        return GVRENDER_PLUGIN;  /* FIXME - need better return code */
     }
     return NO_SUPPORT;
index 75066ab77e19efb9d3d5561aa75a39ba68be7b2d..f8b75217aca12f5dae74726f1dbd3409efbfca4d 100644 (file)
@@ -52,7 +52,7 @@ int gvrender_select(GVJ_t * job, const char *str)
     if (plugin) {
        typeptr = plugin->typeptr;
        job->device.engine = typeptr->engine;
-       job->device.features = (gvdevice_features_t *) (typeptr->features);
+       job->device.features = typeptr->features;
        job->device.id = typeptr->id;
        job->device.type = plugin->typestr;
 
@@ -66,7 +66,7 @@ int gvrender_select(GVJ_t * job, const char *str)
     if (plugin) {
        typeptr = plugin->typeptr;
        job->render.engine = typeptr->engine;
-       job->render.features = (gvrender_features_t *) (typeptr->features);
+       job->render.features = typeptr->features;
        job->render.type = plugin->typestr;
 
        job->flags |= job->render.features->flags;