Refactor some loops using modern C++
This saves us some code and makes it more readable.
Also it fixes the kio/src/core/kcoredirlister.cpp:2328:5: warning: c++11 range-loop might detach Qt container (QVector) [-Wclazy-range-loop]
clazy warning.
This saves us some code and makes it more readable.
Also it fixes the kio/src/core/kcoredirlister.cpp:2328:5: warning: c++11 range-loop might detach Qt container (QVector) [-Wclazy-range-loop]
clazy warning.