forked from qt-creator/qt-creator
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>
This commit is contained in:
committed by
Orgad Shaneh
parent
2cf72a628d
commit
5f91cb0d68
@@ -35,8 +35,6 @@
|
|||||||
#include <QList>
|
#include <QList>
|
||||||
#include <QtTest>
|
#include <QtTest>
|
||||||
|
|
||||||
Q_DECLARE_METATYPE(QList<QByteArray>)
|
|
||||||
|
|
||||||
using namespace CPlusPlus;
|
using namespace CPlusPlus;
|
||||||
using namespace CppTools;
|
using namespace CppTools;
|
||||||
|
|
||||||
|
|||||||
@@ -315,8 +315,6 @@ typedef QSharedPointer<CppQuickFixFactory> CppQuickFixFactoryPtr;
|
|||||||
|
|
||||||
} // namespace CppEditor
|
} // namespace CppEditor
|
||||||
|
|
||||||
Q_DECLARE_METATYPE(CppEditor::CppQuickFixFactoryPtr)
|
|
||||||
|
|
||||||
namespace CppEditor {
|
namespace CppEditor {
|
||||||
namespace Internal {
|
namespace Internal {
|
||||||
|
|
||||||
|
|||||||
@@ -89,7 +89,6 @@ public:
|
|||||||
};
|
};
|
||||||
typedef QList<OverrideItem> OverrideItemList;
|
typedef QList<OverrideItem> OverrideItemList;
|
||||||
Q_DECLARE_METATYPE(OverrideItem)
|
Q_DECLARE_METATYPE(OverrideItem)
|
||||||
Q_DECLARE_METATYPE(OverrideItemList)
|
|
||||||
|
|
||||||
inline bool operator==(const OverrideItem &lhs, const OverrideItem &rhs)
|
inline bool operator==(const OverrideItem &lhs, const OverrideItem &rhs)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -115,7 +115,6 @@ struct Result
|
|||||||
} // anonymous namespace
|
} // anonymous namespace
|
||||||
|
|
||||||
Q_DECLARE_METATYPE(Result)
|
Q_DECLARE_METATYPE(Result)
|
||||||
Q_DECLARE_METATYPE(QList<Result>)
|
|
||||||
|
|
||||||
QT_BEGIN_NAMESPACE
|
QT_BEGIN_NAMESPACE
|
||||||
namespace QTest {
|
namespace QTest {
|
||||||
|
|||||||
@@ -48,8 +48,6 @@ using namespace CppTools::Internal;
|
|||||||
using namespace ExtensionSystem;
|
using namespace ExtensionSystem;
|
||||||
using namespace Utils;
|
using namespace Utils;
|
||||||
|
|
||||||
Q_DECLARE_METATYPE(ILocatorFilter *)
|
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
enum { debug = 0 };
|
enum { debug = 0 };
|
||||||
|
|||||||
@@ -67,8 +67,6 @@
|
|||||||
#include <sstream>
|
#include <sstream>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
Q_DECLARE_METATYPE(QSet<QString>)
|
|
||||||
|
|
||||||
static const bool DumpProjectInfo = qgetenv("QTC_DUMP_PROJECT_INFO") == "1";
|
static const bool DumpProjectInfo = qgetenv("QTC_DUMP_PROJECT_INFO") == "1";
|
||||||
|
|
||||||
using namespace CppTools;
|
using namespace CppTools;
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ using namespace ProjectExplorer;
|
|||||||
|
|
||||||
typedef CPlusPlus::Document Document;
|
typedef CPlusPlus::Document Document;
|
||||||
|
|
||||||
Q_DECLARE_METATYPE(QVector<ProjectFile>)
|
Q_DECLARE_METATYPE(ProjectFile)
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
|
|||||||
@@ -175,8 +175,6 @@ typedef QList<Virtuality> VirtualityList;
|
|||||||
} // CppTools namespace
|
} // CppTools namespace
|
||||||
|
|
||||||
Q_DECLARE_METATYPE(CppTools::Internal::Virtuality)
|
Q_DECLARE_METATYPE(CppTools::Internal::Virtuality)
|
||||||
Q_DECLARE_METATYPE(CppTools::Internal::VirtualityList)
|
|
||||||
Q_DECLARE_METATYPE(QList<int>)
|
|
||||||
|
|
||||||
namespace CppTools {
|
namespace CppTools {
|
||||||
namespace Internal {
|
namespace Internal {
|
||||||
|
|||||||
@@ -33,8 +33,6 @@
|
|||||||
|
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
Q_DECLARE_METATYPE(QSet<QString>)
|
|
||||||
|
|
||||||
using namespace CppTools::Internal;
|
using namespace CppTools::Internal;
|
||||||
using namespace CppTools::Tests;
|
using namespace CppTools::Tests;
|
||||||
|
|
||||||
|
|||||||
@@ -126,7 +126,6 @@ private:
|
|||||||
} // anonymous namespace
|
} // anonymous namespace
|
||||||
|
|
||||||
Q_DECLARE_METATYPE(ResultData)
|
Q_DECLARE_METATYPE(ResultData)
|
||||||
Q_DECLARE_METATYPE(ResultDataList)
|
|
||||||
|
|
||||||
QT_BEGIN_NAMESPACE
|
QT_BEGIN_NAMESPACE
|
||||||
namespace QTest {
|
namespace QTest {
|
||||||
|
|||||||
Reference in New Issue
Block a user