RunConfiguration: Simplify adding of ExtraAspects

This makes the code a bit simpler, at the cost of the factories not
having access to the fully specialized RunConfiguration anymore. This
is apparently never used and the factories can still use the Id to decide
what to do if they really need to.

Change-Id: I7d94f85e984ac87e62c6d341c1038e1538aa15df
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Tobias Hunger
2017-01-05 12:49:45 +01:00
parent f3e3d395e5
commit 87c8839202
5 changed files with 9 additions and 23 deletions

View File

@@ -398,7 +398,6 @@ void Target::addRunConfiguration(RunConfiguration *rc)
{
QTC_ASSERT(rc && !d->m_runConfigurations.contains(rc), return);
Q_ASSERT(rc->target() == this);
rc->addExtraAspects();
// Check that we don't have a configuration with the same displayName
QString configurationDisplayName = rc->displayName();