diff options
author | hjk <hjk@qt.io> | 2020-01-09 18:42:28 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2020-01-14 13:56:10 +0000 |
commit | b4ee6eb3c049167cf000298b819e18ebd99d34d7 (patch) | |
tree | f7e50fff823ce8da72b690f2b6242efc89158af0 /src/plugins/genericprojectmanager | |
parent | 27bbe6462b0ec5e18b567b36afb6529cf0d6a036 (diff) |
ProjectExplorer: Move some of the BuildInfo setup code to central places
Change-Id: I8893366acb187ea1a94a8ca272ded2c46cb521d1
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/genericprojectmanager')
-rw-r--r-- | src/plugins/genericprojectmanager/genericbuildconfiguration.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/genericprojectmanager/genericbuildconfiguration.cpp b/src/plugins/genericprojectmanager/genericbuildconfiguration.cpp index cab18f9082..f241a3d317 100644 --- a/src/plugins/genericprojectmanager/genericbuildconfiguration.cpp +++ b/src/plugins/genericprojectmanager/genericbuildconfiguration.cpp @@ -75,11 +75,10 @@ GenericBuildConfigurationFactory::GenericBuildConfigurationFactory() setSupportedProjectType(Constants::GENERICPROJECT_ID); setSupportedProjectMimeTypeName(Constants::GENERICMIMETYPE); - setBuildGenerator([this](const Kit *k, const FilePath &projectPath, bool forSetup) { - BuildInfo info(this); + setBuildGenerator([](const Kit *, const FilePath &projectPath, bool forSetup) { + BuildInfo info; info.typeName = BuildConfiguration::tr("Build"); info.buildDirectory = forSetup ? Project::projectDirectory(projectPath) : projectPath; - info.kitId = k->id(); if (forSetup) { //: The name of the build configuration created by default for a generic project. |