Use range-based for loop

Authored by chehrlic on Jul 3 2019, 4:37 PM.