diff options
author | hjk <hjk@qt.io> | 2018-09-12 11:48:32 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2018-09-13 12:36:35 +0000 |
commit | 2c4dadccb623147a14b498a02290e6275d4d0bc2 (patch) | |
tree | fbbaec6df1e0f9482adf469e3d82718fddc87016 /src/plugins/projectexplorer/runconfiguration.h | |
parent | 425463ce8daf6ca862526d07c4d24d09215da151 (diff) |
ProjectExplorer: Update "generic" run configuration aspects
None of the run configuration aspects that are added to each runconfig
depend on the actual runconfig, only two need the target, the rest
nothing at all. So use target as common denominator.
Change-Id: I31829e63ac79d5c707bb068d73fc6a4687cb4c47
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/runconfiguration.h')
-rw-r--r-- | src/plugins/projectexplorer/runconfiguration.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/projectexplorer/runconfiguration.h b/src/plugins/projectexplorer/runconfiguration.h index 55cf9e504b..badc0fd0f2 100644 --- a/src/plugins/projectexplorer/runconfiguration.h +++ b/src/plugins/projectexplorer/runconfiguration.h @@ -228,10 +228,10 @@ public: static RunConfiguration *startupRunConfiguration(); virtual bool canRunForNode(const ProjectExplorer::Node *) const { return false; } - using AspectFactory = std::function<IRunConfigurationAspect *(RunConfiguration *)>; + using AspectFactory = std::function<IRunConfigurationAspect *(Target *)>; template <class T> static void registerAspect() { - addAspectFactory([](RunConfiguration *rc) { return new T(rc); }); + addAspectFactory([](Target *target) { return new T(target); }); } signals: |