From: Matthew Fernandez Date: Thu, 8 Sep 2022 00:27:49 +0000 (-0700) Subject: glcomp: remove unnecessary casts of 'compset' member X-Git-Tag: 6.0.2~5^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fe520df79c84c541cbb52ae9a25f97905c8b2bdd;p=graphviz glcomp: remove unnecessary casts of 'compset' member --- diff --git a/lib/glcomp/glcompset.c b/lib/glcomp/glcompset.c index af65053c7..b1815b147 100644 --- a/lib/glcomp/glcompset.c +++ b/lib/glcomp/glcompset.c @@ -179,7 +179,7 @@ void glCompInitCommon(glCompObj * childObj, glCompObj * parentObj, c->color = parent->color; c->layer = parent->layer + 1; c->pos.z = parent->pos.z; - glCompSetAddObj((glCompSet *) parent->compset, childObj); + glCompSetAddObj(parent->compset, childObj); } else { c->parent = NULL; c->color.R = GLCOMPSET_PANEL_COLOR_R; @@ -209,7 +209,7 @@ glCompSet *glCompSetNew(int w, int h) s->textureCount = 0; s->textures = NULL; s->common.font = glNewFontFromParent((glCompObj *) s, NULL); - s->common.compset = (glCompSet *) s; + s->common.compset = s; s->common.functions.mouseover = (glcompmouseoverfunc_t)glCompMouseMove; s->common.functions.mousedown = (glcompmousedownfunc_t)glCompSetMouseDown; s->common.functions.mouseup = (glcompmouseupfunc_t)glCompSetMouseUp;