standardoutputview: port foreach -> range-based for

Authored by kossebau on Jul 16 2019, 9:22 PM.