From cf22e8ea4eb43c736486a2c0b61b73ec1831d90b Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Thu, 3 Jan 2013 17:55:57 +0100 Subject: [PATCH] Tests: Remove declaration of built-in and automatic metatypes. These types are either built-in or 'automatically declared' and so don't need to be explicitly declared as metatypes. Change-Id: Ifd116dee32a450ff89a9a1011e26b434765d6e95 Reviewed-by: David Faure --- .../concurrent/qtconcurrentmap/tst_qtconcurrentmap.cpp | 7 ------- tests/auto/corelib/io/qprocess/tst_qprocess.cpp | 1 - tests/auto/other/modeltest/modeltest.cpp | 2 -- tests/auto/printsupport/kernel/qprinter/tst_qprinter.cpp | 1 - .../printsupport/kernel/qprinterinfo/tst_qprinterinfo.cpp | 1 - .../auto/sql/models/qsqltablemodel/tst_qsqltablemodel.cpp | 1 - tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp | 1 - tests/auto/xml/dom/qdom/tst_qdom.cpp | 1 - .../tst_network_remote_stresstest.cpp | 1 - 9 files changed, 16 deletions(-) diff --git a/tests/auto/concurrent/qtconcurrentmap/tst_qtconcurrentmap.cpp b/tests/auto/concurrent/qtconcurrentmap/tst_qtconcurrentmap.cpp index b6bc5b085bf..5073d87cb59 100644 --- a/tests/auto/concurrent/qtconcurrentmap/tst_qtconcurrentmap.cpp +++ b/tests/auto/concurrent/qtconcurrentmap/tst_qtconcurrentmap.cpp @@ -49,13 +49,6 @@ #include "functions.h" -Q_DECLARE_METATYPE(QVector); -Q_DECLARE_METATYPE(QVector); -Q_DECLARE_METATYPE(QVector); -Q_DECLARE_METATYPE(QList); -Q_DECLARE_METATYPE(QList); -Q_DECLARE_METATYPE(QList); - class tst_QtConcurrentMap: public QObject { Q_OBJECT diff --git a/tests/auto/corelib/io/qprocess/tst_qprocess.cpp b/tests/auto/corelib/io/qprocess/tst_qprocess.cpp index 8f76945bf59..98c12b01c18 100644 --- a/tests/auto/corelib/io/qprocess/tst_qprocess.cpp +++ b/tests/auto/corelib/io/qprocess/tst_qprocess.cpp @@ -56,7 +56,6 @@ # include # endif -Q_DECLARE_METATYPE(QList); Q_DECLARE_METATYPE(QProcess::ExitStatus); Q_DECLARE_METATYPE(QProcess::ProcessState); #endif diff --git a/tests/auto/other/modeltest/modeltest.cpp b/tests/auto/other/modeltest/modeltest.cpp index 17f164b638e..27b1e5aa950 100644 --- a/tests/auto/other/modeltest/modeltest.cpp +++ b/tests/auto/other/modeltest/modeltest.cpp @@ -46,8 +46,6 @@ #include -Q_DECLARE_METATYPE ( QModelIndex ) - /*! Connect to all of the models signals. Whenever anything happens recheck everything. */ diff --git a/tests/auto/printsupport/kernel/qprinter/tst_qprinter.cpp b/tests/auto/printsupport/kernel/qprinter/tst_qprinter.cpp index b01f311f4f2..85ddc41cdf5 100644 --- a/tests/auto/printsupport/kernel/qprinter/tst_qprinter.cpp +++ b/tests/auto/printsupport/kernel/qprinter/tst_qprinter.cpp @@ -56,7 +56,6 @@ #include #endif -Q_DECLARE_METATYPE(QRect) QT_FORWARD_DECLARE_CLASS(QPrinter) diff --git a/tests/auto/printsupport/kernel/qprinterinfo/tst_qprinterinfo.cpp b/tests/auto/printsupport/kernel/qprinterinfo/tst_qprinterinfo.cpp index 0ff80c41475..16c0711ee72 100644 --- a/tests/auto/printsupport/kernel/qprinterinfo/tst_qprinterinfo.cpp +++ b/tests/auto/printsupport/kernel/qprinterinfo/tst_qprinterinfo.cpp @@ -50,7 +50,6 @@ # include #endif -Q_DECLARE_METATYPE(QRect) class tst_QPrinterInfo : public QObject { diff --git a/tests/auto/sql/models/qsqltablemodel/tst_qsqltablemodel.cpp b/tests/auto/sql/models/qsqltablemodel/tst_qsqltablemodel.cpp index b66bec170a2..a3341fff242 100644 --- a/tests/auto/sql/models/qsqltablemodel/tst_qsqltablemodel.cpp +++ b/tests/auto/sql/models/qsqltablemodel/tst_qsqltablemodel.cpp @@ -49,7 +49,6 @@ const QString test(qTableName("test", __FILE__)), test2(qTableName("test2", __FILE__)), test3(qTableName("test3", __FILE__)); -Q_DECLARE_METATYPE(QModelIndex) class tst_QSqlTableModel : public QObject { diff --git a/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp b/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp index 457be3fddd2..572388df6cc 100644 --- a/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp +++ b/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp @@ -166,7 +166,6 @@ void tst_Cmptest::compare_pointerfuncs() QCOMPARE(&i, intptr()); } -Q_DECLARE_METATYPE(QVariant) struct PhonyClass { diff --git a/tests/auto/xml/dom/qdom/tst_qdom.cpp b/tests/auto/xml/dom/qdom/tst_qdom.cpp index 1b32aad5f29..540c242485b 100644 --- a/tests/auto/xml/dom/qdom/tst_qdom.cpp +++ b/tests/auto/xml/dom/qdom/tst_qdom.cpp @@ -143,7 +143,6 @@ private: QList m_testCodecs; }; -Q_DECLARE_METATYPE(QList) void tst_QDom::setContent_data() { diff --git a/tests/manual/network_remote_stresstest/tst_network_remote_stresstest.cpp b/tests/manual/network_remote_stresstest/tst_network_remote_stresstest.cpp index 98e2d0b2ac0..4c05c641268 100644 --- a/tests/manual/network_remote_stresstest/tst_network_remote_stresstest.cpp +++ b/tests/manual/network_remote_stresstest/tst_network_remote_stresstest.cpp @@ -74,7 +74,6 @@ typedef int SOCKET; # include #endif -Q_DECLARE_METATYPE(QVector) class tst_NetworkRemoteStressTest : public QObject {