aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/ssh/sftpfilesystemmodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/ssh/sftpfilesystemmodel.cpp')
-rw-r--r--src/libs/ssh/sftpfilesystemmodel.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/libs/ssh/sftpfilesystemmodel.cpp b/src/libs/ssh/sftpfilesystemmodel.cpp
index 572c39de2f..73860bacae 100644
--- a/src/libs/ssh/sftpfilesystemmodel.cpp
+++ b/src/libs/ssh/sftpfilesystemmodel.cpp
@@ -46,7 +46,7 @@ class SftpDirNode;
class SftpFileNode
{
public:
- SftpFileNode() : parent(0) { }
+ SftpFileNode() : parent(nullptr) { }
virtual ~SftpFileNode() { }
QString path;
@@ -98,9 +98,9 @@ using namespace Internal;
SftpFileSystemModel::SftpFileSystemModel(QObject *parent)
: QAbstractItemModel(parent), d(new SftpFileSystemModelPrivate)
{
- d->sshConnection = 0;
+ d->sshConnection = nullptr;
d->rootDirectory = QLatin1Char('/');
- d->rootNode = 0;
+ d->rootNode = nullptr;
d->statJobId = SftpInvalidJob;
}
@@ -131,7 +131,7 @@ void SftpFileSystemModel::setRootDirectory(const QString &path)
beginResetModel();
d->rootDirectory = path;
delete d->rootNode;
- d->rootNode = 0;
+ d->rootNode = nullptr;
d->lsOps.clear();
d->statJobId = SftpInvalidJob;
endResetModel();
@@ -262,17 +262,17 @@ void SftpFileSystemModel::statRootDirectory()
void SftpFileSystemModel::shutDown()
{
if (d->sftpSession) {
- disconnect(d->sftpSession.get(), 0, this, 0);
+ disconnect(d->sftpSession.get(), nullptr, this, nullptr);
d->sftpSession->quit();
d->sftpSession.release()->deleteLater();
}
if (d->sshConnection) {
- disconnect(d->sshConnection, 0, this, 0);
+ disconnect(d->sshConnection, nullptr, this, nullptr);
QSsh::releaseConnection(d->sshConnection);
- d->sshConnection = 0;
+ d->sshConnection = nullptr;
}
delete d->rootNode;
- d->rootNode = 0;
+ d->rootNode = nullptr;
}
void SftpFileSystemModel::handleSshConnectionFailure()