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/gui/image/qimageconversion/tst_qimageconversion.cpp | 1 - tests/benchmarks/gui/image/qimagereader/tst_qimagereader.cpp | 5 ----- tests/benchmarks/gui/painting/qpainter/tst_qpainter.cpp | 4 ---- tests/benchmarks/gui/text/qtext/main.cpp | 1 - 4 files changed, 11 deletions(-) (limited to 'tests/benchmarks/gui') diff --git a/tests/benchmarks/gui/image/qimageconversion/tst_qimageconversion.cpp b/tests/benchmarks/gui/image/qimageconversion/tst_qimageconversion.cpp index fe63285352..34c9aac214 100644 --- a/tests/benchmarks/gui/image/qimageconversion/tst_qimageconversion.cpp +++ b/tests/benchmarks/gui/image/qimageconversion/tst_qimageconversion.cpp @@ -42,7 +42,6 @@ #include #include -Q_DECLARE_METATYPE(QImage) class tst_QImageConversion : public QObject { diff --git a/tests/benchmarks/gui/image/qimagereader/tst_qimagereader.cpp b/tests/benchmarks/gui/image/qimagereader/tst_qimagereader.cpp index ea883cc50b..f3368d9289 100644 --- a/tests/benchmarks/gui/image/qimagereader/tst_qimagereader.cpp +++ b/tests/benchmarks/gui/image/qimagereader/tst_qimagereader.cpp @@ -54,13 +54,8 @@ typedef QMap QStringMap; typedef QList 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 { diff --git a/tests/benchmarks/gui/painting/qpainter/tst_qpainter.cpp b/tests/benchmarks/gui/painting/qpainter/tst_qpainter.cpp index 43516601d3..6fec8dbca0 100644 --- a/tests/benchmarks/gui/painting/qpainter/tst_qpainter.cpp +++ b/tests/benchmarks/gui/painting/qpainter/tst_qpainter.cpp @@ -53,10 +53,6 @@ #include -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) diff --git a/tests/benchmarks/gui/text/qtext/main.cpp b/tests/benchmarks/gui/text/qtext/main.cpp index 543b9041da..f82514eb89 100644 --- a/tests/benchmarks/gui/text/qtext/main.cpp +++ b/tests/benchmarks/gui/text/qtext/main.cpp @@ -50,7 +50,6 @@ #include #include -Q_DECLARE_METATYPE(QTextDocument*) Q_DECLARE_METATYPE(QList) class tst_QText: public QObject -- cgit v1.2.3