From ee7dbf97bbec888a9a5abceeab87c4a570ef20fc Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Thu, 3 Jan 2013 10:43:34 +0100 Subject: Benchmarks: Remove declaration of built-in and automatic metatypes. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These types are either built-in or 'automatically declared' and so don't need to be explicitly declared as metatypes. Change-Id: Iba4b7f8ff7a1c7974d144b955cbf064e43b36ec7 Reviewed-by: Jędrzej Nowacki --- tests/benchmarks/corelib/codecs/qtextcodec/main.cpp | 1 - tests/benchmarks/corelib/tools/qalgorithms/tst_qalgorithms.cpp | 1 - tests/benchmarks/corelib/tools/qlist/main.cpp | 1 - 3 files changed, 3 deletions(-) (limited to 'tests/benchmarks/corelib') diff --git a/tests/benchmarks/corelib/codecs/qtextcodec/main.cpp b/tests/benchmarks/corelib/codecs/qtextcodec/main.cpp index 0dec59513b..de2b585b09 100644 --- a/tests/benchmarks/corelib/codecs/qtextcodec/main.cpp +++ b/tests/benchmarks/corelib/codecs/qtextcodec/main.cpp @@ -42,7 +42,6 @@ #include #include -Q_DECLARE_METATYPE(QList) Q_DECLARE_METATYPE(QTextCodec *) class tst_QTextCodec: public QObject diff --git a/tests/benchmarks/corelib/tools/qalgorithms/tst_qalgorithms.cpp b/tests/benchmarks/corelib/tools/qalgorithms/tst_qalgorithms.cpp index ffcb8e395a..79b9b36040 100644 --- a/tests/benchmarks/corelib/tools/qalgorithms/tst_qalgorithms.cpp +++ b/tests/benchmarks/corelib/tools/qalgorithms/tst_qalgorithms.cpp @@ -97,7 +97,6 @@ QVector generateData(QString dataSetType, const int length) return container; } -Q_DECLARE_METATYPE(QVector) void tst_QAlgorithms::stableSort_data() { diff --git a/tests/benchmarks/corelib/tools/qlist/main.cpp b/tests/benchmarks/corelib/tools/qlist/main.cpp index ab0597ccae..02cdad5f2b 100644 --- a/tests/benchmarks/corelib/tools/qlist/main.cpp +++ b/tests/benchmarks/corelib/tools/qlist/main.cpp @@ -192,7 +192,6 @@ void removeAll_test(const QList &i10, ushort valueToRemove, int itemsToRemo QCOMPARE(MyBase::errorCount, 0); } -Q_DECLARE_METATYPE(QList); void tst_QList::removeAll_primitive_data() { -- cgit v1.2.3