From 2c4dadccb623147a14b498a02290e6275d4d0bc2 Mon Sep 17 00:00:00 2001 From: hjk Date: Wed, 12 Sep 2018 11:48:32 +0200 Subject: 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 --- src/plugins/projectexplorer/runconfiguration.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins/projectexplorer/runconfiguration.h') 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; + using AspectFactory = std::function; template static void registerAspect() { - addAspectFactory([](RunConfiguration *rc) { return new T(rc); }); + addAspectFactory([](Target *target) { return new T(target); }); } signals: -- cgit v1.2.3