diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2016-10-28 17:23:13 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2017-01-10 18:11:11 +0000 |
commit | ba244f5400bfff1601cc6b373383b55956fcf6bb (patch) | |
tree | 8ed77349a0423056d9dee8914a3bfddc3c124994 /tests/auto/qml/qqmllocale | |
parent | 26051fd5724e56e0715bc56fde8e8464ff386bbc (diff) |
tst_qqmllocale: use QVERIFY() rather than QCOMPARE(, true)
Use booleans as booleans, it's what they're for.
Change-Id: I68c0ba5efcfd3556eeef043b179769e91c77cf03
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests/auto/qml/qqmllocale')
-rw-r--r-- | tests/auto/qml/qqmllocale/tst_qqmllocale.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qml/qqmllocale/tst_qqmllocale.cpp b/tests/auto/qml/qqmllocale/tst_qqmllocale.cpp index 4d2cae1523..44d11cdda3 100644 --- a/tests/auto/qml/qqmllocale/tst_qqmllocale.cpp +++ b/tests/auto/qml/qqmllocale/tst_qqmllocale.cpp @@ -1291,7 +1291,7 @@ void tst_qqmllocale::timeZoneUpdated() QQmlComponent c(&e, testFileUrl("timeZoneUpdated.qml")); QScopedPointer<QObject> obj(c.create()); QVERIFY(obj); - QCOMPARE(obj->property("success").toBool(), true); + QVERIFY(obj->property("success").toBool()); // Change to Indian time setTimeZone(QByteArray("IST-05:30")); @@ -1302,7 +1302,7 @@ void tst_qqmllocale::timeZoneUpdated() setTimeZone(original); QMetaObject::invokeMethod(obj.data(), "resetTimeZone"); - QCOMPARE(obj->property("success").toBool(), true); + QVERIFY(obj->property("success").toBool()); } #endif |