diff options
author | hjk <hjk@qt.io> | 2020-08-18 11:28:40 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2020-08-18 17:03:59 +0000 |
commit | fb262ce24d3b534cd7390f4ff72a94f6de1c051a (patch) | |
tree | 1980c4151a6b23737d4be9937742eeb936274765 /src/plugins/projectexplorer/buildstep.cpp | |
parent | d3c31917aa245c2f447cd7fa524d92398b5c7191 (diff) | |
download | qt-creator-fb262ce24d3b534cd7390f4ff72a94f6de1c051a.tar.gz |
ProjectExplorer: Streamline build step creation via menu
Change-Id: I801031d5a3d3ad8d8e5cf61766ca4e9791d7a96c
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/buildstep.cpp')
-rw-r--r-- | src/plugins/projectexplorer/buildstep.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/plugins/projectexplorer/buildstep.cpp b/src/plugins/projectexplorer/buildstep.cpp index 39a2e647fd..cc8c0fdb57 100644 --- a/src/plugins/projectexplorer/buildstep.cpp +++ b/src/plugins/projectexplorer/buildstep.cpp @@ -463,12 +463,9 @@ Utils::Id BuildStepFactory::stepId() const return m_info.id; } -BuildStep *BuildStepFactory::create(BuildStepList *parent, Utils::Id id) +BuildStep *BuildStepFactory::create(BuildStepList *parent) { - BuildStep *bs = nullptr; - if (id == m_info.id) - bs = m_info.creator(parent); - return bs; + return m_info.creator(parent); } BuildStep *BuildStepFactory::restore(BuildStepList *parent, const QVariantMap &map) |