summaryrefslogtreecommitdiff
path: root/src/plugins/scanner/cpp/cppscanner.cpp
diff options
context:
space:
mode:
authorIvan Komissarov <abbapoh@gmail.com>2020-10-24 22:18:53 +0200
committerIvan Komissarov <ABBAPOH@gmail.com>2020-10-26 09:56:18 +0000
commitf4d1c96b9aa73a5c215c7f76551df1ae4e7d9d54 (patch)
tree3f0b88f31c0cd073ebe6dd6e6fbf84884ffba16b /src/plugins/scanner/cpp/cppscanner.cpp
parentd91045953cda7aeb655e501561d78c7ad14038fa (diff)
downloadqbs-f4d1c96b9aa73a5c215c7f76551df1ae4e7d9d54.tar.gz
clang-tidy: Apply modernize-use-nullptr fix-it
Change-Id: I404ac10a14517763daf656dd38dd560534cbf1fa Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/scanner/cpp/cppscanner.cpp')
-rw-r--r--src/plugins/scanner/cpp/cppscanner.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/scanner/cpp/cppscanner.cpp b/src/plugins/scanner/cpp/cppscanner.cpp
index 0acb25172..6800ce608 100644
--- a/src/plugins/scanner/cpp/cppscanner.cpp
+++ b/src/plugins/scanner/cpp/cppscanner.cpp
@@ -233,7 +233,7 @@ static void *openScanner(const unsigned short *filePath, const char *fileTags, i
mapl = s.st_size;
opaque->mapl = mapl;
- void *vmap = mmap(0, s.st_size, PROT_READ, MAP_PRIVATE, opaque->fd, 0);
+ void *vmap = mmap(nullptr, s.st_size, PROT_READ, MAP_PRIVATE, opaque->fd, 0);
if (vmap == MAP_FAILED) // NOLINT(cppcoreguidelines-pro-type-cstyle-cast)
return nullptr;
#else
@@ -319,7 +319,7 @@ ScannerPlugin includeScanner =
ScannerUsesCppIncludePaths | ScannerRecursiveDependencies
};
-ScannerPlugin *cppScanners[] = { &includeScanner, NULL };
+ScannerPlugin *cppScanners[] = { &includeScanner, nullptr };
static void QbsCppScannerPluginLoad()
{