aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2018-09-04 13:11:21 +0200
committerhjk <hjk@qt.io>2018-09-04 13:22:16 +0000
commite6a94d42185f2852257b40ca4f03b204c12d6f51 (patch)
tree438a1990f86a78399a5002d3c72d9800c0e9e2c0
parentacc982cc282e53458e4527df509986ea9b8b97c3 (diff)
Adapt to upstream change to aspect creation
Change-Id: Id01df2e8ecea67e6f5a3893219143a264017688a Reviewed-by: Eike Ziller <eike.ziller@qt.io>
-rw-r--r--plugins/haskell/haskellrunconfiguration.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/haskell/haskellrunconfiguration.cpp b/plugins/haskell/haskellrunconfiguration.cpp
index d6aad3d..980e4fd 100644
--- a/plugins/haskell/haskellrunconfiguration.cpp
+++ b/plugins/haskell/haskellrunconfiguration.cpp
@@ -67,13 +67,13 @@ void HaskellExecutableAspect::update()
HaskellRunConfiguration::HaskellRunConfiguration(Target *target, Core::Id id)
: RunConfiguration(target, id)
{
- addExtraAspect(new HaskellExecutableAspect(this));
- addExtraAspect(new ArgumentsAspect(this));
- auto workingDirAspect = new WorkingDirectoryAspect(this);
+ addAspect<HaskellExecutableAspect>();
+ addAspect<ArgumentsAspect>();
+ auto workingDirAspect = addAspect<WorkingDirectoryAspect>();
workingDirAspect->setDefaultWorkingDirectory(target->project()->projectDirectory());
workingDirAspect->setVisible(false);
- addExtraAspect(new TerminalAspect(this));
- addExtraAspect(new LocalEnvironmentAspect(this, LocalEnvironmentAspect::BaseEnvironmentModifier()));
+ addAspect<TerminalAspect>();
+ addAspect<LocalEnvironmentAspect>(LocalEnvironmentAspect::BaseEnvironmentModifier());
}
void HaskellRunConfiguration::doAdditionalSetup(const RunConfigurationCreationInfo &info)