diff options
author | hjk <hjk@qt.io> | 2019-01-15 15:48:01 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2019-01-16 10:26:47 +0000 |
commit | a2d5ebccd2d28d339eda18d0d5c0ebbe698e381c (patch) | |
tree | aeabda480aef5a494417ea1e9e6e6107c5039cf5 /src/plugins/projectexplorer/target.cpp | |
parent | 32ced725112403ba3af0acbc8f0db8f7fbad1eeb (diff) |
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>
Diffstat (limited to 'src/plugins/projectexplorer/target.cpp')
-rw-r--r-- | src/plugins/projectexplorer/target.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/target.cpp b/src/plugins/projectexplorer/target.cpp index 8b87bf525c..05cc11de34 100644 --- a/src/plugins/projectexplorer/target.cpp +++ b/src/plugins/projectexplorer/target.cpp @@ -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; |