path: root/src/corelib/itemmodels/qitemselectionmodel.h
diff options
authorEdward Welbourne <>2021-01-08 13:48:51 +0100
committerEdward Welbourne <>2021-01-18 15:55:15 +0100
commit6ee13db700eecd8dfed54a9ec2d1081b39511562 (patch)
tree46c103be4c244a58c3bffbb1662642c3f2eaded9 /src/corelib/itemmodels/qitemselectionmodel.h
parent50c63446f525a8625b6315597cb0897d89908d6b (diff)
Correct string comparison in Android's IANA ID matching codeHEADdev
It used and assumed it was returning a bool true on equality, when it actually returns an int that compares to 0 as the given strings compare. So it should use compare() == 0. This fixes several of QTimeZone's blacklisted tests on Android and a crasher, which we dodged with a QSKIP. Added an id-comparison to a test. Gave two local variables more informative names, made an early return into a QSKIP so it explains itself. Fixes: QTBUG-89905 Fixes: QTBUG-69122 Fixes: QTBUG-69132 Fixes: QTBUG-87435 Pick-to: 6.0 5.15 Change-Id: Icf18ed5a810143d6e65d36e34a70e82faac10b8e Reviewed-by: Qt CI Bot <> Reviewed-by: Thiago Macieira <> Reviewed-by: Andrei Golubev <>
Diffstat (limited to 'src/corelib/itemmodels/qitemselectionmodel.h')
0 files changed, 0 insertions, 0 deletions