aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/applicationlauncher.cpp
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2018-07-16 13:59:39 +0200
committerTobias Hunger <tobias.hunger@qt.io>2018-07-24 09:04:54 +0000
commit80c2ce118d2e40a6b94117c46524c784d4737a52 (patch)
tree294ca26cbd2ae3c12b7f9d19923fbee07406848e /src/plugins/projectexplorer/applicationlauncher.cpp
parent48850dfa4d47cd8ae6ac871a0438c9c164e073f5 (diff)
ProjectExplorer: Modernize even more
Use unique_ptr for all *Private classes, except for those in singletons. Change-Id: Ib56c31ddedc6e9cf321f15de1f1e697a27ad4089 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/applicationlauncher.cpp')
-rw-r--r--src/plugins/projectexplorer/applicationlauncher.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/plugins/projectexplorer/applicationlauncher.cpp b/src/plugins/projectexplorer/applicationlauncher.cpp
index 70b55b7aae..8cb71a9bec 100644
--- a/src/plugins/projectexplorer/applicationlauncher.cpp
+++ b/src/plugins/projectexplorer/applicationlauncher.cpp
@@ -165,14 +165,10 @@ ApplicationLauncherPrivate::ApplicationLauncherPrivate(ApplicationLauncher *pare
}
ApplicationLauncher::ApplicationLauncher(QObject *parent) : QObject(parent),
- d(new ApplicationLauncherPrivate(this))
-{
-}
+ d(std::make_unique<ApplicationLauncherPrivate>(this))
+{ }
-ApplicationLauncher::~ApplicationLauncher()
-{
- delete d;
-}
+ApplicationLauncher::~ApplicationLauncher() = default;
void ApplicationLauncher::setProcessChannelMode(QProcess::ProcessChannelMode mode)
{