]> granicus.if.org Git - graphviz/commitdiff
beginpath: remove parens and dereferences of function pointer
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 18 Jun 2022 22:21:26 +0000 (15:21 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 23 Jun 2022 00:11:37 +0000 (17:11 -0700)
The compiler knows how to do this without needing to be explicitly told.

lib/common/splines.c

index 5ed5e7492ac7351e788111e8319e740288d50424..c62cfed574f67f81db5a888361411d046516bf18 100644 (file)
@@ -553,7 +553,7 @@ beginpath(path * P, edge_t * e, int et, pathend_t * endp, bool merge)
     if (et == REGULAREDGE) side = BOTTOM;
     else side = endp->sidemask;  /* for flat edges */
     if (pboxfn
-       && (mask = (*pboxfn) (n, &ED_tail_port(e), side, &endp->boxes[0], &endp->boxn)))
+       && (mask = pboxfn(n, &ED_tail_port(e), side, &endp->boxes[0], &endp->boxn)))
        endp->sidemask = mask;
     else {
        endp->boxes[0] = endp->nb;