diff options
author | hjk <hjk@qt.io> | 2018-09-12 10:43:10 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2018-09-13 12:09:39 +0000 |
commit | 32ba65c7f8176487402f6982ecd92acda3ad629c (patch) | |
tree | 12e24e85ea31982856812d831cf35132ce93e252 /src/plugins/projectexplorer/customexecutablerunconfiguration.cpp | |
parent | c763d4d78711d4fdf01ce8aa713383a0a131a39e (diff) |
ProjectExplorer: Remove IRunConfigurationAspect::runConfiguration
... and adapt constructors to not take the now-unneeded
RunConfiguration pointer.
Change-Id: I53ff338f51334ff7b0c22d4bed92bfcfc8225ea7
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/customexecutablerunconfiguration.cpp')
-rw-r--r-- | src/plugins/projectexplorer/customexecutablerunconfiguration.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp b/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp index c255c063be..89e511a192 100644 --- a/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp +++ b/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp @@ -87,9 +87,7 @@ private: CustomExecutableDialog::CustomExecutableDialog(RunConfiguration *rc) : QDialog(Core::ICore::dialogParent()), m_rc(rc), - m_arguments(rc), - m_workingDirectory(rc, rc->extraAspect<EnvironmentAspect>()), - m_terminal(rc) + m_workingDirectory(rc->extraAspect<EnvironmentAspect>()) { auto vbox = new QVBoxLayout(this); vbox->addWidget(new QLabel(tr("Could not find the executable, please specify one."))); @@ -178,7 +176,8 @@ CustomExecutableRunConfiguration::CustomExecutableRunConfiguration(Target *targe CustomExecutableRunConfiguration::CustomExecutableRunConfiguration(Target *target, Core::Id id) : RunConfiguration(target, id) { - auto envAspect = addAspect<LocalEnvironmentAspect>(LocalEnvironmentAspect::BaseEnvironmentModifier()); + auto envAspect = addAspect<LocalEnvironmentAspect> + (target, LocalEnvironmentAspect::BaseEnvironmentModifier()); auto exeAspect = addAspect<ExecutableAspect>(); exeAspect->setSettingsKey("ProjectExplorer.CustomExecutableRunConfiguration.Executable"); |