From ad330f327e68fb42b3013b72a2b64588d2ce01fe Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Thu, 3 Jan 2013 10:41:37 +0100 Subject: DBus: 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. In some cases, the type is required to be registered with the typedef name, so those Q_DECLARE_METATYPE uses remain for now. In a future patch we can also remove those and the typedefs themselves. Change-Id: I5721955c86f566ae09024203954840f817bd3088 Reviewed-by: Jędrzej Nowacki --- tests/auto/dbus/qdbusmetatype/tst_qdbusmetatype.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'tests/auto/dbus/qdbusmetatype') diff --git a/tests/auto/dbus/qdbusmetatype/tst_qdbusmetatype.cpp b/tests/auto/dbus/qdbusmetatype/tst_qdbusmetatype.cpp index f0d15f4c20..1c93a558a8 100644 --- a/tests/auto/dbus/qdbusmetatype/tst_qdbusmetatype.cpp +++ b/tests/auto/dbus/qdbusmetatype/tst_qdbusmetatype.cpp @@ -93,11 +93,6 @@ Q_DECLARE_METATYPE(Struct3) Q_DECLARE_METATYPE(Struct4) Q_DECLARE_METATYPE(StringPair) -Q_DECLARE_METATYPE(QList) -Q_DECLARE_METATYPE(QList) -Q_DECLARE_METATYPE(QList) -Q_DECLARE_METATYPE(QList) - Q_DECLARE_METATYPE(Invalid0) Q_DECLARE_METATYPE(Invalid1) Q_DECLARE_METATYPE(Invalid2) @@ -107,14 +102,9 @@ Q_DECLARE_METATYPE(Invalid5) Q_DECLARE_METATYPE(Invalid6) Q_DECLARE_METATYPE(Invalid7) -Q_DECLARE_METATYPE(QList) - typedef QMap IntStringMap; typedef QMap StringStringMap; typedef QMap StringStruct1Map; -Q_DECLARE_METATYPE(IntStringMap) -Q_DECLARE_METATYPE(StringStringMap) -Q_DECLARE_METATYPE(StringStruct1Map) Q_DECLARE_METATYPE(QVariant::Type) -- cgit v1.2.3