diff options
author | Lars Schmertmann <Lars.Schmertmann@governikus.de> | 2020-06-26 14:42:52 +0200 |
---|---|---|
committer | Lars Schmertmann <Lars.Schmertmann@governikus.de> | 2020-06-26 15:21:41 +0200 |
commit | 09e937788d0bb32a133fbf668b834fa13e7669c3 (patch) | |
tree | 0db182fd01569511994ea9ff570abc8dc40be9d7 /tests | |
parent | 3c7d4de151d0d87b687644381c5d8aaef06f21b2 (diff) |
Add ; to Q_UNUSED
This is required to remove the ; from the macro with Qt 6.
Task-number: QTBUG-82978
Change-Id: I66f620431011d02cb1542e8ad613dadd28fdd843
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/cpptest/q3dscatter-modelproxy/tst_proxy.cpp | 2 | ||||
-rw-r--r-- | tests/manual/barstest/custominputhandler.cpp | 2 | ||||
-rw-r--r-- | tests/manual/itemmodeltest/main.cpp | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/cpptest/q3dscatter-modelproxy/tst_proxy.cpp b/tests/auto/cpptest/q3dscatter-modelproxy/tst_proxy.cpp index 8e17f6bb..55fb2333 100644 --- a/tests/auto/cpptest/q3dscatter-modelproxy/tst_proxy.cpp +++ b/tests/auto/cpptest/q3dscatter-modelproxy/tst_proxy.cpp @@ -192,7 +192,7 @@ void tst_proxy::addModel() m_proxy->setZPosRoleReplace(QStringLiteral("\\1")); QScatter3DSeries *series = new QScatter3DSeries(m_proxy); - Q_UNUSED(series) + Q_UNUSED(series); QCoreApplication::processEvents(); diff --git a/tests/manual/barstest/custominputhandler.cpp b/tests/manual/barstest/custominputhandler.cpp index 3e61f904..e6fe9aa5 100644 --- a/tests/manual/barstest/custominputhandler.cpp +++ b/tests/manual/barstest/custominputhandler.cpp @@ -39,7 +39,7 @@ CustomInputHandler::CustomInputHandler(QObject *parent) : //! [0] void CustomInputHandler::mouseMoveEvent(QMouseEvent *event, const QPoint &mousePos) { - Q_UNUSED(event) + Q_UNUSED(event); setInputPosition(mousePos); } //! [0] diff --git a/tests/manual/itemmodeltest/main.cpp b/tests/manual/itemmodeltest/main.cpp index 6cb97fc8..90a2e74e 100644 --- a/tests/manual/itemmodeltest/main.cpp +++ b/tests/manual/itemmodeltest/main.cpp @@ -216,8 +216,8 @@ void GraphDataGenerator::selectFromTable(const QPoint &selection) void GraphDataGenerator::selectedFromTable(int currentRow, int currentColumn, int previousRow, int previousColumn) { - Q_UNUSED(previousRow) - Q_UNUSED(previousColumn) + Q_UNUSED(previousRow); + Q_UNUSED(previousColumn); m_barGraph->seriesList().at(0)->setSelectedBar(QPoint(currentRow, currentColumn)); m_surfaceGraph->seriesList().at(0)->setSelectedPoint(QPoint(currentRow, currentColumn)); } |