SAX: use ranged-for loops


In places where we do not need the index.
It is the part of porting the code from int to qsizetype.

Task-number: QTBUG-149566
Pick-to: 6.12 6.12.0 6.11 6.11.3 6.8 6.5
Change-Id: Ia24e05b4b54f0e4d3298b2067381eb48c3a68630
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
commit6cae8a4aebc82fb59116d55a551c168b2cd9e053
parent1f076045b3347d9dc8aa5deea8caf0f5355af915
authorIvan Solovev <ivan.solovev@qt.io>
committerMarc Mutz <marc.mutz@qt.io>
commit timeMon, 14 Sep 2026 12:14:23 +0000