]> granicus.if.org Git - graphviz/commitdiff
make_label: remove unnecessary casts
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 15 Jan 2022 18:16:51 +0000 (10:16 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 15 Jan 2022 23:03:23 +0000 (15:03 -0800)
lib/common/labels.c

index c370360fb116c709a11c76e4d73d42bce2d1ca79..246b3cb0bf5241c797535e8c99ba535ce5204a5b 100644 (file)
@@ -120,15 +120,15 @@ textlabel_t *make_label(void *obj, char *str, int kind, double fontsize, char *f
 
     switch (agobjkind(obj)) {
     case AGRAPH:
-        sg = (graph_t*)obj;
+        sg = obj;
        g = sg->root;
        break;
     case AGNODE:
-        n = (node_t*)obj;
+        n = obj;
        g = agroot(agraphof(n));
        break;
     case AGEDGE:
-        e = (edge_t*)obj;
+        e = obj;
        g = agroot(agraphof(aghead(e)));
        break;
     }