diff options
author | Ivan Komissarov <abbapoh@gmail.com> | 2020-10-24 22:18:53 +0200 |
---|---|---|
committer | Ivan Komissarov <ABBAPOH@gmail.com> | 2020-10-26 09:56:18 +0000 |
commit | f4d1c96b9aa73a5c215c7f76551df1ae4e7d9d54 (patch) | |
tree | 3f0b88f31c0cd073ebe6dd6e6fbf84884ffba16b /src/plugins/scanner/cpp/cppscanner.cpp | |
parent | d91045953cda7aeb655e501561d78c7ad14038fa (diff) | |
download | qbs-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.cpp | 4 |
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() { |