Switch to range-based for loop. No functionality change.