QXmlStreamReader: re-enable -Wswitch in parse()


Upon re-entry, parse() clears some state variable, and in that code
there was a switch over TokenType that had a default: case label.

As it turns out, this case label was only ever active for EndDocument,
so use that explicitly, and not default:.

This re-enables -Wswitch (which warns when an enumeration isn't
handled in the switch, so it can't be forgotter), and, being explicit
about what's handled there, makes the code easier to read.

Remove a useless lone semicolon, too.

Amends the start of the public history.

Pick-to: 6.12 6.8
Change-Id: I8e62b9cf4ac25baa63f0332c3511ee7037af441c
Reviewed-by: Qt Review Bot <qt_reviewbot@qt-project.org>
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
commitfbdbfbed712117219fbc682d03b49df01d953694
parent6d0c5860b1e21da8735f196223223dfc40d3afc2
authorMarc Mutz <marc.mutz@qt.io>
committerMarc Mutz <marc.mutz@qt.io>
commit timeWed, 21 Oct 2026 10:58:30 +0000