diff options
author | Lars Schmertmann <Lars.Schmertmann@governikus.de> | 2020-06-26 14:43:02 +0200 |
---|---|---|
committer | Lars Schmertmann <Lars.Schmertmann@governikus.de> | 2020-06-26 19:18:03 +0200 |
commit | e79281533d61dda90d1c5995345a66e6089c7501 (patch) | |
tree | 5033642cb0ae1d76aa0fc0525e153c04eefc921d /tests/benchmarks | |
parent | 6d8aca544ccb1e2624a679e2d65622461f643291 (diff) |
Add ; to Q_UNUSED and UNUSED_PARAM
This is required to remove the ; from the macro with Qt 6.
Task-number: QTBUG-82978
Change-Id: Iead53d18fd790fb2d870d80ef2db79666f0d2392
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tests/benchmarks')
-rw-r--r-- | tests/benchmarks/qml/holistic/testtypes.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/benchmarks/qml/holistic/testtypes.cpp b/tests/benchmarks/qml/holistic/testtypes.cpp index 90576c65b8..e190a29eef 100644 --- a/tests/benchmarks/qml/holistic/testtypes.cpp +++ b/tests/benchmarks/qml/holistic/testtypes.cpp @@ -30,8 +30,8 @@ static QJSValue script_api(QQmlEngine *engine, QJSEngine *scriptEngine) { - Q_UNUSED(engine) - Q_UNUSED(scriptEngine) + Q_UNUSED(engine); + Q_UNUSED(scriptEngine); static int testProperty = 13; QJSValue v = scriptEngine->newObject(); @@ -41,8 +41,8 @@ static QJSValue script_api(QQmlEngine *engine, QJSEngine *scriptEngine) static QObject *qobject_api(QQmlEngine *engine, QJSEngine *scriptEngine) { - Q_UNUSED(engine) - Q_UNUSED(scriptEngine) + Q_UNUSED(engine); + Q_UNUSED(scriptEngine); testQObjectApi *o = new testQObjectApi; o->setQObjectTestProperty(20); @@ -51,7 +51,7 @@ static QObject *qobject_api(QQmlEngine *engine, QJSEngine *scriptEngine) static QObject *qobject_api_engine_parent(QQmlEngine *engine, QJSEngine *scriptEngine) { - Q_UNUSED(scriptEngine) + Q_UNUSED(scriptEngine); static int testProperty = 26; testQObjectApi *o = new testQObjectApi(engine); |