diff options
author | hjk <hjk@qt.io> | 2019-01-22 13:14:22 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2019-01-24 13:09:13 +0000 |
commit | 7f3de881e3d8196649e69e025c80d872fbea2e24 (patch) | |
tree | 7e3e3af98c653783bb5e039c0175fd45befc1483 /src/plugins/projectexplorer/deployconfiguration.h | |
parent | 197f2b5f2a8d5335040e0b8012797bf47a29f397 (diff) |
ProjectExplorer: Remove some Id use from DeployConfig interface
There's a 1:1 relation between the involved types, having either
the factory or the id implies having the other. So shorten interfaces
that used both so far. Also canCreate() == canHandle() && id matches,
so use that directly.
Also drop/QTC_ASSERT former canHandle() checks that are implicit
in preceding ::find() calls.
Change-Id: I686ea5774c5a01b05b3b4882b3d59080a812a677
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/deployconfiguration.h')
-rw-r--r-- | src/plugins/projectexplorer/deployconfiguration.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/projectexplorer/deployconfiguration.h b/src/plugins/projectexplorer/deployconfiguration.h index f4a9bca2552..fd60277ffee 100644 --- a/src/plugins/projectexplorer/deployconfiguration.h +++ b/src/plugins/projectexplorer/deployconfiguration.h @@ -79,8 +79,7 @@ public: // the name to display to the user QString defaultDisplayName() const; - bool canCreate(Target *parent, Core::Id id) const; - virtual DeployConfiguration *create(Target *parent, Core::Id id); + DeployConfiguration *create(Target *parent); static const QList<DeployConfigurationFactory *> find(Target *parent); static DeployConfiguration *restore(Target *parent, const QVariantMap &map); |