diff options
author | Nikita Baryshnikov <nib952051@gmail.com> | 2015-07-24 16:17:57 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2016-03-24 08:15:44 +0000 |
commit | 5f91cb0d68e1e4a446f4ce79165eca50f52f47a9 (patch) | |
tree | eaa079492341c13be88fdc31591f00aae269ad3b | |
parent | 2cf72a628d5477853a9713ee6182b241299fd9a4 (diff) | |
download | qt-creator-5f91cb0d68e1e4a446f4ce79165eca50f52f47a9.tar.gz |
CppTools: fix metatype registration macro usage
in places where we do not need it
Change-Id: Ibf35f8144da859fffa3e0a7b6bb262284ec2292a
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-rw-r--r-- | src/plugins/cppeditor/cppincludehierarchy_test.cpp | 2 | ||||
-rw-r--r-- | src/plugins/cppeditor/cppquickfix_test.cpp | 2 | ||||
-rw-r--r-- | src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp | 1 | ||||
-rw-r--r-- | src/plugins/cpptools/cpplocalsymbols_test.cpp | 1 | ||||
-rw-r--r-- | src/plugins/cpptools/cpplocatorfilter_test.cpp | 2 | ||||
-rw-r--r-- | src/plugins/cpptools/cppmodelmanager.cpp | 2 | ||||
-rw-r--r-- | src/plugins/cpptools/cppmodelmanager_test.cpp | 2 | ||||
-rw-r--r-- | src/plugins/cpptools/functionutils.cpp | 2 | ||||
-rw-r--r-- | src/plugins/cpptools/modelmanagertesthelper.cpp | 2 | ||||
-rw-r--r-- | src/plugins/cpptools/symbolsearcher_test.cpp | 1 |
10 files changed, 1 insertions, 16 deletions
diff --git a/src/plugins/cppeditor/cppincludehierarchy_test.cpp b/src/plugins/cppeditor/cppincludehierarchy_test.cpp index ffef3a8b35..8bb29f4123 100644 --- a/src/plugins/cppeditor/cppincludehierarchy_test.cpp +++ b/src/plugins/cppeditor/cppincludehierarchy_test.cpp @@ -35,8 +35,6 @@ #include <QList> #include <QtTest> -Q_DECLARE_METATYPE(QList<QByteArray>) - using namespace CPlusPlus; using namespace CppTools; diff --git a/src/plugins/cppeditor/cppquickfix_test.cpp b/src/plugins/cppeditor/cppquickfix_test.cpp index b592d9f9da..ddd2b5097d 100644 --- a/src/plugins/cppeditor/cppquickfix_test.cpp +++ b/src/plugins/cppeditor/cppquickfix_test.cpp @@ -315,8 +315,6 @@ typedef QSharedPointer<CppQuickFixFactory> CppQuickFixFactoryPtr; } // namespace CppEditor -Q_DECLARE_METATYPE(CppEditor::CppQuickFixFactoryPtr) - namespace CppEditor { namespace Internal { diff --git a/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp b/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp index c5bbf1f449..b2e1c98294 100644 --- a/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp +++ b/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp @@ -89,7 +89,6 @@ public: }; typedef QList<OverrideItem> OverrideItemList; Q_DECLARE_METATYPE(OverrideItem) -Q_DECLARE_METATYPE(OverrideItemList) inline bool operator==(const OverrideItem &lhs, const OverrideItem &rhs) { diff --git a/src/plugins/cpptools/cpplocalsymbols_test.cpp b/src/plugins/cpptools/cpplocalsymbols_test.cpp index 7fb8a921e2..9183c9bfcd 100644 --- a/src/plugins/cpptools/cpplocalsymbols_test.cpp +++ b/src/plugins/cpptools/cpplocalsymbols_test.cpp @@ -115,7 +115,6 @@ struct Result } // anonymous namespace Q_DECLARE_METATYPE(Result) -Q_DECLARE_METATYPE(QList<Result>) QT_BEGIN_NAMESPACE namespace QTest { diff --git a/src/plugins/cpptools/cpplocatorfilter_test.cpp b/src/plugins/cpptools/cpplocatorfilter_test.cpp index b9b08f3d54..27258855d8 100644 --- a/src/plugins/cpptools/cpplocatorfilter_test.cpp +++ b/src/plugins/cpptools/cpplocatorfilter_test.cpp @@ -48,8 +48,6 @@ using namespace CppTools::Internal; using namespace ExtensionSystem; using namespace Utils; -Q_DECLARE_METATYPE(ILocatorFilter *) - namespace { enum { debug = 0 }; diff --git a/src/plugins/cpptools/cppmodelmanager.cpp b/src/plugins/cpptools/cppmodelmanager.cpp index cdf5922e42..13b582cfed 100644 --- a/src/plugins/cpptools/cppmodelmanager.cpp +++ b/src/plugins/cpptools/cppmodelmanager.cpp @@ -67,8 +67,6 @@ #include <sstream> #endif -Q_DECLARE_METATYPE(QSet<QString>) - static const bool DumpProjectInfo = qgetenv("QTC_DUMP_PROJECT_INFO") == "1"; using namespace CppTools; diff --git a/src/plugins/cpptools/cppmodelmanager_test.cpp b/src/plugins/cpptools/cppmodelmanager_test.cpp index 2304221631..92bbebf91d 100644 --- a/src/plugins/cpptools/cppmodelmanager_test.cpp +++ b/src/plugins/cpptools/cppmodelmanager_test.cpp @@ -57,7 +57,7 @@ using namespace ProjectExplorer; typedef CPlusPlus::Document Document; -Q_DECLARE_METATYPE(QVector<ProjectFile>) +Q_DECLARE_METATYPE(ProjectFile) namespace { diff --git a/src/plugins/cpptools/functionutils.cpp b/src/plugins/cpptools/functionutils.cpp index dd26c80f25..b8224923a0 100644 --- a/src/plugins/cpptools/functionutils.cpp +++ b/src/plugins/cpptools/functionutils.cpp @@ -175,8 +175,6 @@ typedef QList<Virtuality> VirtualityList; } // CppTools namespace Q_DECLARE_METATYPE(CppTools::Internal::Virtuality) -Q_DECLARE_METATYPE(CppTools::Internal::VirtualityList) -Q_DECLARE_METATYPE(QList<int>) namespace CppTools { namespace Internal { diff --git a/src/plugins/cpptools/modelmanagertesthelper.cpp b/src/plugins/cpptools/modelmanagertesthelper.cpp index 38573fcf07..f347cd81af 100644 --- a/src/plugins/cpptools/modelmanagertesthelper.cpp +++ b/src/plugins/cpptools/modelmanagertesthelper.cpp @@ -33,8 +33,6 @@ #include <cassert> -Q_DECLARE_METATYPE(QSet<QString>) - using namespace CppTools::Internal; using namespace CppTools::Tests; diff --git a/src/plugins/cpptools/symbolsearcher_test.cpp b/src/plugins/cpptools/symbolsearcher_test.cpp index 1eae1a9b9a..dc71fa1562 100644 --- a/src/plugins/cpptools/symbolsearcher_test.cpp +++ b/src/plugins/cpptools/symbolsearcher_test.cpp @@ -126,7 +126,6 @@ private: } // anonymous namespace Q_DECLARE_METATYPE(ResultData) -Q_DECLARE_METATYPE(ResultDataList) QT_BEGIN_NAMESPACE namespace QTest { |