From: Matthew Fernandez Date: Sat, 8 May 2021 03:43:50 +0000 (-0700) Subject: use a range-based for loop to abbreviate some code in VPSC::blockGraphIsCyclic X-Git-Tag: 2.47.2~11^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=280b9e3ef00718caf77a7e2519baa4cbf2f07901;p=graphviz use a range-based for loop to abbreviate some code in VPSC::blockGraphIsCyclic --- diff --git a/lib/vpsc/solve_VPSC.cpp b/lib/vpsc/solve_VPSC.cpp index 80e73dfd4..e9b035cce 100644 --- a/lib/vpsc/solve_VPSC.cpp +++ b/lib/vpsc/solve_VPSC.cpp @@ -387,8 +387,7 @@ bool VPSC::blockGraphIsCyclic() { return true; } else { graph.erase(i); - for(set::iterator j=u->out.begin();j!=u->out.end();j++) { - node *v=*j; + for(node * v : u->out) { v->in.erase(u); } delete u;