diff options
author | Jesus Fernandez <jesus.fernandez@qt.io> | 2018-07-31 13:57:15 +0200 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@qt.io> | 2018-07-31 13:34:23 +0000 |
commit | b0fd9623651ca32187e4f79ad299ef43ce8347a0 (patch) | |
tree | a5ebd74995c3371dee91321868ac9cc174b8cf65 /tests | |
parent | d61c673d54ba5cf7e52ea0d8510fbfa2e4f7dd4b (diff) | |
download | qttools-b0fd9623651ca32187e4f79ad299ef43ce8347a0.tar.gz |
Fix -Wold-style-cast
It replaces QCOMPARE with QVERIFY when comparing to booleans.
Change-Id: I419edf1da0c1b205f88e672de386d7b5f2ce0627
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qhelpgenerator/tst_qhelpgenerator.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/auto/qhelpgenerator/tst_qhelpgenerator.cpp b/tests/auto/qhelpgenerator/tst_qhelpgenerator.cpp index 14d264e84..47a879db2 100644 --- a/tests/auto/qhelpgenerator/tst_qhelpgenerator.cpp +++ b/tests/auto/qhelpgenerator/tst_qhelpgenerator.cpp @@ -170,11 +170,11 @@ void tst_QHelpGenerator::checkFiles() fileAtts[id].append(m_query->value(1).toString()); } QCOMPARE(fileAtts.count(), 2); - QCOMPARE((bool)fileAtts.value(1).contains("test"), true); - QCOMPARE((bool)fileAtts.value(1).contains("filter1"), true); - QCOMPARE((bool)fileAtts.value(1).contains("filter2"), false); - QCOMPARE((bool)fileAtts.value(2).contains("test"), true); - QCOMPARE((bool)fileAtts.value(2).contains("filter2"), true); + QVERIFY(fileAtts.value(1).contains("test")); + QVERIFY(fileAtts.value(1).contains("filter1")); + QVERIFY(!fileAtts.value(1).contains("filter2")); + QVERIFY(fileAtts.value(2).contains("test")); + QVERIFY(fileAtts.value(2).contains("filter2")); } void tst_QHelpGenerator::checkMetaData() |