[C++11] Converting to range-based for loops. No functional changes intended.