diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2022-09-06 14:26:51 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2023-01-10 13:01:43 +0100 |
commit | 35501c837df427201f1248059e6dde8166c53469 (patch) | |
tree | 4c3fc2b8c30abcffa5e6fabe8ed6def7261e54a7 /tests | |
parent | 953aa4c4261fdb77e045d9aae6064291a170799b (diff) |
Compare size() to unsigned numeric literals
The STL containers used in some types return size_t as their size(),
which gets signed/unsigned comparison warnings. Use unsigned literals
for the constants to compare against.
Change-Id: I91887a1dbd3eb95655c86add2e9f589f0c970def
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/core/qaspectjob/tst_qaspectjob.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/core/qaspectjob/tst_qaspectjob.cpp b/tests/auto/core/qaspectjob/tst_qaspectjob.cpp index 6fcb9283e..a892e0932 100644 --- a/tests/auto/core/qaspectjob/tst_qaspectjob.cpp +++ b/tests/auto/core/qaspectjob/tst_qaspectjob.cpp @@ -33,7 +33,7 @@ private Q_SLOTS: job1->addDependency(job3); // THEN - QCOMPARE(job1->dependencies().size(), 2); + QCOMPARE(job1->dependencies().size(), 2U); QCOMPARE(job1->dependencies().at(0).lock(), job2); QCOMPARE(job1->dependencies().at(1).lock(), job3); QVERIFY(job2->dependencies().empty()); |