forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -63,7 +63,7 @@ public:
|
||||
};
|
||||
|
||||
SshDeviceProcess::SshDeviceProcess(const IDevice::ConstPtr &device, QObject *parent)
|
||||
: DeviceProcess(device, parent), d(new SshDeviceProcessPrivate(this))
|
||||
: DeviceProcess(device, parent), d(std::make_unique<SshDeviceProcessPrivate>(this))
|
||||
{
|
||||
connect(&d->killTimer, &QTimer::timeout, this, &SshDeviceProcess::handleKillOperationTimeout);
|
||||
}
|
||||
@@ -71,7 +71,6 @@ SshDeviceProcess::SshDeviceProcess(const IDevice::ConstPtr &device, QObject *par
|
||||
SshDeviceProcess::~SshDeviceProcess()
|
||||
{
|
||||
d->setState(SshDeviceProcessPrivate::Inactive);
|
||||
delete d;
|
||||
}
|
||||
|
||||
void SshDeviceProcess::start(const Runnable &runnable)
|
||||
|
||||
Reference in New Issue
Block a user