Use range-based for loop. No functionality change.