aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)