Use range-based for loops. No functionality change.