diff options
author | Alessandro Portale <alessandro.portale@qt.io> | 2018-11-24 17:06:01 +0100 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@qt.io> | 2018-11-28 17:47:02 +0000 |
commit | f52f25e15054b54e7b515853418f30618a9925d1 (patch) | |
tree | 691fdc64a281bdf3ee7b35f04e8e2c973f924b51 /src/plugins/remotelinux/remotelinuxcustomcommanddeployservice.cpp | |
parent | 77c729bb8a315dc596d111bddabf0b510094f7cc (diff) | |
download | qt-creator-f52f25e15054b54e7b515853418f30618a9925d1.tar.gz |
RemoteLinux: Modernize
modernize-*
Change-Id: Ifdf0e781c63941625ca032a8e1752082f4abc3ce
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/remotelinux/remotelinuxcustomcommanddeployservice.cpp')
-rw-r--r-- | src/plugins/remotelinux/remotelinuxcustomcommanddeployservice.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/plugins/remotelinux/remotelinuxcustomcommanddeployservice.cpp b/src/plugins/remotelinux/remotelinuxcustomcommanddeployservice.cpp index 6822db222c..eddcda0f19 100644 --- a/src/plugins/remotelinux/remotelinuxcustomcommanddeployservice.cpp +++ b/src/plugins/remotelinux/remotelinuxcustomcommanddeployservice.cpp @@ -39,11 +39,9 @@ enum State { Inactive, Running }; class RemoteLinuxCustomCommandDeployservicePrivate { public: - RemoteLinuxCustomCommandDeployservicePrivate() : state(Inactive), runner(0) { } - QString commandLine; - State state; - SshRemoteProcessRunner *runner; + State state = Inactive; + SshRemoteProcessRunner *runner = nullptr; }; } // namespace Internal @@ -105,7 +103,7 @@ void RemoteLinuxCustomCommandDeployService::stopDeployment() { QTC_ASSERT(d->state == Running, return); - disconnect(d->runner, 0, this, 0); + disconnect(d->runner, nullptr, this, nullptr); d->runner->cancel(); d->state = Inactive; handleDeploymentDone(); |