]> granicus.if.org Git - graphviz/commitdiff
endpath: remove parens and dereferences of function pointer
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 18 Jun 2022 22:22:01 +0000 (15:22 -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 c62cfed574f67f81db5a888361411d046516bf18..37a05c558a975711bbf427cc3db6ada26bdfaa15 100644 (file)
@@ -749,7 +749,7 @@ void endpath(path * P, edge_t * e, int et, pathend_t * endp, bool merge)
     if (et == REGULAREDGE) side = TOP;
     else side = endp->sidemask;  /* for flat edges */
     if (pboxfn
-       && (mask = (*pboxfn) (n, &ED_head_port(e), side, &endp->boxes[0], &endp->boxn)))
+       && (mask = pboxfn(n, &ED_head_port(e), side, &endp->boxes[0], &endp->boxn)))
        endp->sidemask = mask;
     else {
        endp->boxes[0] = endp->nb;