forked from qt-creator/qt-creator
ProjectExplorer: Simplify availableCreationIds(Target *parent) use
Similarly to before, it's either an empty list, or a single id. So use a function with bool return saying whether an id is returned and a plain accessor the the id. Change-Id: Ied2900f23bdb4c264d9fb1944c60bed734d1d8bb Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -513,7 +513,7 @@ void Target::updateDefaultDeployConfigurations()
|
||||
|
||||
QList<Core::Id> dcIds;
|
||||
foreach (DeployConfigurationFactory *dcFactory, dcFactories)
|
||||
dcIds.append(dcFactory->availableCreationIds(this));
|
||||
dcIds.append(dcFactory->creationId());
|
||||
|
||||
QList<DeployConfiguration *> dcList = deployConfigurations();
|
||||
QList<Core::Id> toCreate = dcIds;
|
||||
|
||||
Reference in New Issue
Block a user