From 6ce2f3f26bf08b4c6952f492a3731eb4fe5a42bc Mon Sep 17 00:00:00 2001 From: Lars Schmertmann Date: Sat, 27 Jun 2020 14:18:09 +0200 Subject: 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 --- .../widgets/itemviews/qabstractitemview/tst_qabstractitemview.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/auto/widgets/itemviews/qabstractitemview/tst_qabstractitemview.cpp') diff --git a/tests/auto/widgets/itemviews/qabstractitemview/tst_qabstractitemview.cpp b/tests/auto/widgets/itemviews/qabstractitemview/tst_qabstractitemview.cpp index 99f82f92b2..02be27ffc7 100644 --- a/tests/auto/widgets/itemviews/qabstractitemview/tst_qabstractitemview.cpp +++ b/tests/auto/widgets/itemviews/qabstractitemview/tst_qabstractitemview.cpp @@ -64,7 +64,7 @@ static inline void moveCursorAway(const QWidget *topLevel) #ifndef QT_NO_CURSOR QCursor::setPos(topLevel->geometry().topRight() + QPoint(100, 0)); #else - Q_UNUSED(topLevel) + Q_UNUSED(topLevel); #endif } @@ -204,8 +204,8 @@ public: void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const { - Q_UNUSED(model) - Q_UNUSED(index) + Q_UNUSED(model); + Q_UNUSED(index); QDialog *dialog = qobject_cast(editor); result = static_cast(dialog->result()); -- cgit v1.2.3