- List::const_iterator it = list.begin();
- for (; it != list.end(); ++it) {
- if (it->isSelected() && it->hasFileNameSuffix())
- result += "-" + it->branch();
+ for (auto const & br : list_) {
+ if (br.isSelected() && br.hasFileNameSuffix())
+ result += "-" + br.branch();