]> granicus.if.org Git - graphviz/commitdiff
htmlparse.y: remove some unnecessary casts
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 13 Mar 2022 21:02:11 +0000 (14:02 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 19 Mar 2022 05:28:30 +0000 (22:28 -0700)
lib/common/htmlparse.y

index 82a5c835528d153bf56df3984f2c7b07f343c216..a3393a7b6bed4a7458e289577bd07d39575b1511 100644 (file)
@@ -281,11 +281,11 @@ static void setCell(htmlcell_t *cp, void *obj, char kind) {
     cp->ruled = HTML_VRULE;
   
   if(kind == HTML_TEXT)
-       cp->child.u.txt = (htmltxt_t*)obj;
+       cp->child.u.txt = obj;
   else if (kind == HTML_IMAGE)
-    cp->child.u.img = (htmlimg_t*)obj;
+    cp->child.u.img = obj;
   else
-    cp->child.u.tbl = (htmltbl_t*)obj;
+    cp->child.u.tbl = obj;
 }
 
 /* mkLabel:
@@ -296,9 +296,9 @@ static htmllabel_t *mkLabel(void *obj, char kind) {
 
   lp->kind = kind;
   if (kind == HTML_TEXT)
-    lp->u.txt = (htmltxt_t*)obj;
+    lp->u.txt = obj;
   else
-    lp->u.tbl = (htmltbl_t*)obj;
+    lp->u.tbl = obj;
   return lp;
 }