forked from qt-creator/qt-creator
ProjectExplorer: Simplify IBuildConfigurationFactory interface
Following the RunConfigurationFactory lead this replaces f = Foo::find(); f->do() by static Foo::do() stanzas. Also de-virtualize/private-ize IBuildConfigurationFactory::canCreate() as it is only a local helper nowadays. Change-Id: Id36ba514f426ebd054592189aa29c170ba00d92f Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -358,12 +358,7 @@ bool Project::copySteps(Target *sourceTarget, Target *newTarget)
|
||||
QStringList runconfigurationError;
|
||||
|
||||
foreach (BuildConfiguration *sourceBc, sourceTarget->buildConfigurations()) {
|
||||
IBuildConfigurationFactory *factory = IBuildConfigurationFactory::find(newTarget, sourceBc);
|
||||
if (!factory) {
|
||||
buildconfigurationError << sourceBc->displayName();
|
||||
continue;
|
||||
}
|
||||
BuildConfiguration *newBc = factory->clone(newTarget, sourceBc);
|
||||
BuildConfiguration *newBc = IBuildConfigurationFactory::clone(newTarget, sourceBc);
|
||||
if (!newBc) {
|
||||
buildconfigurationError << sourceBc->displayName();
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user