From: Matthew Fernandez Date: Sat, 8 May 2021 03:15:07 +0000 (-0700) Subject: use a range-based for loop for iterating over block total order collection X-Git-Tag: 2.47.2~11^2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9606fe18a3ee1205d46847476ae0ed6e4a73d60a;p=graphviz use a range-based for loop for iterating over block total order collection --- diff --git a/lib/vpsc/solve_VPSC.cpp b/lib/vpsc/solve_VPSC.cpp index cc43ef172..dbe438428 100644 --- a/lib/vpsc/solve_VPSC.cpp +++ b/lib/vpsc/solve_VPSC.cpp @@ -74,8 +74,7 @@ void VPSC::printBlocks() { */ void VPSC::satisfy() { list *vs=bs.totalOrder(); - for(list::iterator i=vs->begin();i!=vs->end();i++) { - Variable *v=*i; + for(Variable *v : *vs) { if(!v->block->deleted) { bs.mergeLeft(v->block); }