summaryrefslogtreecommitdiff
path: root/src/plugins/pythoneditor/pythoneditorplugin.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2018-09-12 10:43:10 +0200
committerhjk <hjk@qt.io>2018-09-13 12:09:39 +0000
commit32ba65c7f8176487402f6982ecd92acda3ad629c (patch)
tree12e24e85ea31982856812d831cf35132ce93e252 /src/plugins/pythoneditor/pythoneditorplugin.cpp
parentc763d4d78711d4fdf01ce8aa713383a0a131a39e (diff)
downloadqt-creator-32ba65c7f8176487402f6982ecd92acda3ad629c.tar.gz
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/pythoneditor/pythoneditorplugin.cpp')
-rw-r--r--src/plugins/pythoneditor/pythoneditorplugin.cpp6
1 files changed, 3 insertions, 3 deletions
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>(LocalEnvironmentAspect::BaseEnvironmentModifier());
+ addAspect<LocalEnvironmentAspect>(target, LocalEnvironmentAspect::BaseEnvironmentModifier());
addAspect<ArgumentsAspect>();
addAspect<TerminalAspect>();