Port away from deprecated foreach, use for-range instead, first take
The code compiles and konsole loads and seems to work as before.