From 32ba65c7f8176487402f6982ecd92acda3ad629c Mon Sep 17 00:00:00 2001 From: hjk Date: Wed, 12 Sep 2018 10:43:10 +0200 Subject: ProjectExplorer: Remove IRunConfigurationAspect::runConfiguration ... and adapt constructors to not take the now-unneeded RunConfiguration pointer. Change-Id: I53ff338f51334ff7b0c22d4bed92bfcfc8225ea7 Reviewed-by: Ulf Hermann --- src/plugins/pythoneditor/pythoneditorplugin.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/plugins/pythoneditor/pythoneditorplugin.cpp') diff --git a/src/plugins/pythoneditor/pythoneditorplugin.cpp b/src/plugins/pythoneditor/pythoneditorplugin.cpp index 0b5b69797a..f728f6bbc6 100644 --- a/src/plugins/pythoneditor/pythoneditorplugin.cpp +++ b/src/plugins/pythoneditor/pythoneditorplugin.cpp @@ -209,7 +209,7 @@ class InterpreterAspect : public BaseStringAspect Q_OBJECT public: - explicit InterpreterAspect(RunConfiguration *rc) : BaseStringAspect(rc) {} + InterpreterAspect() = default; }; class MainScriptAspect : public BaseStringAspect @@ -217,7 +217,7 @@ class MainScriptAspect : public BaseStringAspect Q_OBJECT public: - explicit MainScriptAspect(RunConfiguration *rc) : BaseStringAspect(rc) {} + MainScriptAspect() = default; }; class PythonRunConfiguration : public RunConfiguration @@ -262,7 +262,7 @@ PythonRunConfiguration::PythonRunConfiguration(Target *target, Core::Id id) scriptAspect->setLabelText(tr("Script:")); scriptAspect->setDisplayStyle(BaseStringAspect::LabelDisplay); - addAspect(LocalEnvironmentAspect::BaseEnvironmentModifier()); + addAspect(target, LocalEnvironmentAspect::BaseEnvironmentModifier()); addAspect(); addAspect(); -- cgit v1.2.1