diff --git a/src/libs/extensionsystem/iplugin.cpp b/src/libs/extensionsystem/iplugin.cpp index b64f56cecef..9f7ca221e51 100644 --- a/src/libs/extensionsystem/iplugin.cpp +++ b/src/libs/extensionsystem/iplugin.cpp @@ -164,7 +164,7 @@ namespace Internal { class IPluginPrivate { public: - QList> testCreators; + QList testCreators; }; } // Internal diff --git a/src/libs/extensionsystem/iplugin.h b/src/libs/extensionsystem/iplugin.h index 39e00b7fad8..5a8fceb3d6e 100644 --- a/src/libs/extensionsystem/iplugin.h +++ b/src/libs/extensionsystem/iplugin.h @@ -13,6 +13,8 @@ namespace ExtensionSystem { namespace Internal { class IPluginPrivate; } +using TestCreator = std::function; + class EXTENSIONSYSTEM_EXPORT IPlugin : public QObject { Q_OBJECT @@ -41,7 +43,6 @@ public: protected: virtual void initialize() {} - using TestCreator = std::function; template void addTest(Args && ...args) { addTestCreator([args...] { return new Test(args...); }); } void addTestCreator(const TestCreator &creator); diff --git a/src/libs/extensionsystem/pluginspec_p.h b/src/libs/extensionsystem/pluginspec_p.h index 44d20f6c565..568ab943a31 100644 --- a/src/libs/extensionsystem/pluginspec_p.h +++ b/src/libs/extensionsystem/pluginspec_p.h @@ -78,7 +78,7 @@ public: PluginSpec::PluginArgumentDescriptions argumentDescriptions; IPlugin *plugin = nullptr; - QList> registeredPluginTests; + QList registeredPluginTests; PluginSpec::State state = PluginSpec::Invalid; bool hasError = false;