XJTUmg / pgrouting

Repository contains pgRouting library. Development branch is "develop", stable branch is "master"
http://www.pgrouting.org
GNU General Public License v2.0
2 stars 0 forks source link

Fix Warning #4

Closed XJTUmg closed 7 years ago

XJTUmg commented 7 years ago

for loops to range loops(dont forget the &)

using auto

more

example of a commit(with a meaningful message)

git commit -a -m 'fixing a for loop to range loop'

meaningful examples

 for(ruleIndex = 0; ruleIndex < totalRule; ruleIndex++) 
      bool flag = true;
     int total_edge = vecRules[ruleIndex].precedencelist.size();

to

 for (const auto &rule : vecRules ) 
      bool flag = true;
     auto total_edge = rule.precedencelist.size();