Benchmarks: 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: Iba4b7f8ff7a1c7974d144b955cbf064e43b36ec7
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
bb10
Stephen Kelly 2013-01-03 10:43:34 +01:00 committed by The Qt Project
parent 330ad41b7d
commit ee7dbf97bb
8 changed files with 0 additions and 15 deletions

View File

@ -42,7 +42,6 @@
#include <QFile>
#include <qtest.h>
Q_DECLARE_METATYPE(QList<QByteArray>)
Q_DECLARE_METATYPE(QTextCodec *)
class tst_QTextCodec: public QObject

View File

@ -97,7 +97,6 @@ QVector<DataType> generateData(QString dataSetType, const int length)
return container;
}
Q_DECLARE_METATYPE(QVector<int>)
void tst_QAlgorithms::stableSort_data()
{

View File

@ -192,7 +192,6 @@ void removeAll_test(const QList<int> &i10, ushort valueToRemove, int itemsToRemo
QCOMPARE(MyBase::errorCount, 0);
}
Q_DECLARE_METATYPE(QList<int>);
void tst_QList::removeAll_primitive_data()
{

View File

@ -76,7 +76,6 @@ private slots:
void roundTripVariant_data();
void roundTripVariant();
};
Q_DECLARE_METATYPE(QVariant)
void tst_QDBusPerformance::initTestCase()
{

View File

@ -42,7 +42,6 @@
#include <qtest.h>
#include <QImage>
Q_DECLARE_METATYPE(QImage)
class tst_QImageConversion : public QObject
{

View File

@ -54,13 +54,8 @@
typedef QMap<QString, QString> QStringMap;
typedef QList<int> QIntList;
Q_DECLARE_METATYPE(QImage)
Q_DECLARE_METATYPE(QRect)
Q_DECLARE_METATYPE(QSize)
Q_DECLARE_METATYPE(QColor)
Q_DECLARE_METATYPE(QStringMap)
Q_DECLARE_METATYPE(QIntList)
Q_DECLARE_METATYPE(QIODevice *)
class tst_QImageReader : public QObject
{

View File

@ -53,10 +53,6 @@
#include <private/qpixmap_raster_p.h>
Q_DECLARE_METATYPE(QLine)
Q_DECLARE_METATYPE(QRect)
Q_DECLARE_METATYPE(QSize)
Q_DECLARE_METATYPE(QPoint)
Q_DECLARE_METATYPE(QPainterPath)
Q_DECLARE_METATYPE(QPainter::RenderHint)
Q_DECLARE_METATYPE(QPainter::CompositionMode)

View File

@ -50,7 +50,6 @@
#include <QBuffer>
#include <qtest.h>
Q_DECLARE_METATYPE(QTextDocument*)
Q_DECLARE_METATYPE(QList<QTextLayout::FormatRange>)
class tst_QText: public QObject