QTypedJson: cleanup variant parsing
Clean up handleVariant() by replacing the magic numbers with a bool
`matched`, roll back m_p after each unsuccessful parse attempt, and reset
the parseStatus temporarily to Normal to detect parse failures in the
variant.
Task-number: QTBUG-148485
Change-Id: I6645e4dd4b8d47737b390e864a9b81db2e500a1d
Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
| commit | 369dc9baf6e7994ca8844ebdcb3b4dc911dac288 |
| parent | 8ef06009e4f33ac45ef6f1a6e4f16656a213c2f3 |
| author | Sami Shalayel <sami.shalayel@qt.io> |
| committer | Sami Shalayel <sami.shalayel@qt.io> |
| commit time | Fri, 31 Jul 2026 14:55:26 +0000 |