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>