Replace 'foreach' macro with range-based 'for'
Replace 'foreach' macro with range-based 'for'

Amends 9757970c477fbd5c81a603b0a5d2106e6db7ca34

Change-Id: I3b4230ed8f74edda1235bc1781c8b2832fbca51c
Reviewed-by: Christian Kandeler <3aa99dcdd3f0cac61fb81c2a11771c0cc2497607@qt.io>

qt-labs/qbs,qtproject/qt-labs-qbs,qtproject/qt-labs-qbs,qt-labs/qbs,qtproject/qt-labs-qbs,qtproject/qt-labs-qbs,qtproject/qt-labs-qbs,qt-labs/qbs,qt-labs/qbs,qtproject/qt-labs-qbs,qtproject/qt-labs-qbs,qt-labs/qbs,qt-labs/qbs,qt-labs/qbs