diff options
author | Lars Schmertmann <Lars.Schmertmann@governikus.de> | 2020-06-27 14:18:09 +0200 |
---|---|---|
committer | Lars Schmertmann <Lars.Schmertmann@governikus.de> | 2020-07-07 11:51:48 +0200 |
commit | 6ce2f3f26bf08b4c6952f492a3731eb4fe5a42bc (patch) | |
tree | 727427eb4c603e74954d4da462484ea7bf5c65bb /tests/benchmarks/corelib/time | |
parent | d9cc1499954829faf9486fb72056e29f1bad58e3 (diff) |
Add ; to Q_UNUSED
This is required to remove the ; from the macro with Qt 6.
Task-number: QTBUG-82978
Change-Id: I3f0b6717956ca8fa486bed9817b89dfa19f5e0e1
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'tests/benchmarks/corelib/time')
-rw-r--r-- | tests/benchmarks/corelib/time/qdatetime/main.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/benchmarks/corelib/time/qdatetime/main.cpp b/tests/benchmarks/corelib/time/qdatetime/main.cpp index 1d63547f8f..c6d2b84597 100644 --- a/tests/benchmarks/corelib/time/qdatetime/main.cpp +++ b/tests/benchmarks/corelib/time/qdatetime/main.cpp @@ -126,7 +126,7 @@ void tst_QDateTime::create() QBENCHMARK { for (int jd = JULIAN_DAY_2010; jd < JULIAN_DAY_2020; ++jd) { QDateTime test(QDate::fromJulianDay(jd), QTime::fromMSecsSinceStartOfDay(0)); - Q_UNUSED(test) + Q_UNUSED(test); } } } @@ -427,7 +427,7 @@ void tst_QDateTime::equivalent() for (const QDateTime &test : list) result = (test == other); } - Q_UNUSED(result) + Q_UNUSED(result); } void tst_QDateTime::equivalentUtc() @@ -440,7 +440,7 @@ void tst_QDateTime::equivalentUtc() for (const QDateTime &test : list) result = (test == other); } - Q_UNUSED(result) + Q_UNUSED(result); } void tst_QDateTime::lessThan() @@ -453,7 +453,7 @@ void tst_QDateTime::lessThan() for (const QDateTime &test : list) result = (test < other); } - Q_UNUSED(result) + Q_UNUSED(result); } void tst_QDateTime::lessThanUtc() @@ -466,7 +466,7 @@ void tst_QDateTime::lessThanUtc() for (const QDateTime &test : list) result = (test < other); } - Q_UNUSED(result) + Q_UNUSED(result); } void tst_QDateTime::currentDateTime() |