]> granicus.if.org Git - graphviz/commitdiff
glcomp: remove unnecessary casts of 'compset' member
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 8 Sep 2022 00:27:49 +0000 (17:27 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 11 Oct 2022 01:43:12 +0000 (18:43 -0700)
lib/glcomp/glcompset.c

index af65053c75e63abfeba48a056bbd88124f8d5c3d..b1815b1474b6ec738b4ac3b6d7d4af907473e49d 100644 (file)
@@ -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;