diff options
author | Alessandro Portale <alessandro.portale@qt.io> | 2018-07-21 21:11:46 +0200 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@qt.io> | 2018-08-08 16:04:21 +0000 |
commit | f36f04debabcf839a50c73e47202b24527e89ece (patch) | |
tree | ccd98e0c6ae1efb957aae97c12fb1fa4e6ca022b /src/plugins/coreplugin/iversioncontrol.cpp | |
parent | 86b8164a937afd4c8ef76bcff66eca280e3f7ddc (diff) | |
download | qt-creator-f36f04debabcf839a50c73e47202b24527e89ece.tar.gz |
Core: Modernize
modernize-use-auto
modernize-use-nullptr
modernize-use-override
modernize-use-using
modernize-use-default-member-init (partially)
Change-Id: Idf10d7ffb1d98a04edc09a25c35e4e9e3abe87b5
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/coreplugin/iversioncontrol.cpp')
-rw-r--r-- | src/plugins/coreplugin/iversioncontrol.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/plugins/coreplugin/iversioncontrol.cpp b/src/plugins/coreplugin/iversioncontrol.cpp index 678e4ecc8c..befa60fbab 100644 --- a/src/plugins/coreplugin/iversioncontrol.cpp +++ b/src/plugins/coreplugin/iversioncontrol.cpp @@ -87,7 +87,7 @@ ShellCommand *IVersionControl::createInitialCheckoutCommand(const QString &url, Q_UNUSED(baseDirectory); Q_UNUSED(localName); Q_UNUSED(extraArgs); - return 0; + return nullptr; } QString IVersionControl::vcsTopic(const QString &topLevel) @@ -106,9 +106,7 @@ IVersionControl::OpenSupportMode IVersionControl::openSupportMode(const QString return NoOpen; } -IVersionControl::TopicCache::~TopicCache() -{ -} +IVersionControl::TopicCache::~TopicCache() = default; /*! Returns the topic for repository under \a topLevel. @@ -175,7 +173,7 @@ bool TestVersionControl::managesFile(const QString &workingDirectory, const QStr QFileInfo fi(workingDirectory + QLatin1Char('/') + fileName); QString dir = fi.absolutePath(); - if (!managesDirectory(dir, 0)) + if (!managesDirectory(dir, nullptr)) return false; QString file = fi.absoluteFilePath(); return m_managedFiles.contains(file); |