summaryrefslogtreecommitdiffstats
path: root/tests/auto/tools
diff options
context:
space:
mode:
authorLars Schmertmann <Lars.Schmertmann@governikus.de>2020-07-02 15:56:26 +0200
committerLars Schmertmann <Lars.Schmertmann@governikus.de>2020-07-03 21:10:09 +0200
commitae890390e523f0f435190654b081764df88d7b94 (patch)
tree9c19ed0c78a11c2fc875cb4b8d4c2087e251cf4b /tests/auto/tools
parentaf3f5b8746a31caf8457590293e3e28101ef85e3 (diff)
Avoid use of Q_UNUSED by eliminating the parameter names
This change only happens to files touched by the commit to add missing ; to Q_UNUSED. Task-number: QTBUG-82978 Change-Id: I10e6993a2bb3952cf9a262708b8573550e0dbe63 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'tests/auto/tools')
-rw-r--r--tests/auto/tools/moc/tst_moc.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/tests/auto/tools/moc/tst_moc.cpp b/tests/auto/tools/moc/tst_moc.cpp
index 2bc0cf1800..01d207b080 100644
--- a/tests/auto/tools/moc/tst_moc.cpp
+++ b/tests/auto/tools/moc/tst_moc.cpp
@@ -1804,16 +1804,14 @@ signals:
class QTBUG12260_defaultTemplate_Object : public QObject
{ Q_OBJECT
public slots:
- void doSomething(QHash<QString, QVariant> values = QHash<QString, QVariant>() ) { Q_UNUSED(values); }
- void doSomethingElse(QSharedPointer<QVarLengthArray<QString, (16 >> 2)> > val
- = QSharedPointer<QVarLengthArray<QString, (16 >> 2)> >() )
- { Q_UNUSED(val); }
+ void doSomething(QHash<QString, QVariant> = QHash<QString, QVariant>() ) {}
+ void doSomethingElse(QSharedPointer<QVarLengthArray<QString, (16 >> 2)> >
+ = QSharedPointer<QVarLengthArray<QString, (16 >> 2)> >() ) {}
- void doAnotherThing(bool a = (1 < 3), bool b = (1 > 4)) { Q_UNUSED(a); Q_UNUSED(b); }
+ void doAnotherThing(bool = (1 < 3), bool = (1 > 4)) {}
- void performSomething(QList<QList<QString>> e = QList<QList<QString>>(8 < 1),
- QHash<int, QList<QString>> h = QHash<int, QList<QString>>())
- { Q_UNUSED(e); Q_UNUSED(h); }
+ void performSomething(QList<QList<QString>> = QList<QList<QString>>(8 < 1),
+ QHash<int, QList<QString>> = QHash<int, QList<QString>>()) {}
};