diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2022-11-22 18:51:48 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2022-11-29 17:39:29 (GMT) |
commit | 1b929ba8e41b49ab9c30c095bf9585b3ab85656b (patch) | |
tree | 36e141a00880df62f0502d6b154e1708eb7afbc0 /Source/cmGlobalVisualStudioVersionedGenerator.cxx | |
parent | bcada09e451b4765ec1239ad11a282ed3ccbc71b (diff) | |
download | CMake-1b929ba8e41b49ab9c30c095bf9585b3ab85656b.zip CMake-1b929ba8e41b49ab9c30c095bf9585b3ab85656b.tar.gz CMake-1b929ba8e41b49ab9c30c095bf9585b3ab85656b.tar.bz2 |
clang-tidy: fix `modernize-use-nullptr` lints
Diffstat (limited to 'Source/cmGlobalVisualStudioVersionedGenerator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudioVersionedGenerator.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmGlobalVisualStudioVersionedGenerator.cxx b/Source/cmGlobalVisualStudioVersionedGenerator.cxx index ee24f05..6fd4dd6 100644 --- a/Source/cmGlobalVisualStudioVersionedGenerator.cxx +++ b/Source/cmGlobalVisualStudioVersionedGenerator.cxx @@ -211,7 +211,7 @@ static const char* cmVS15GenName(const std::string& name, std::string& genName) { if (strncmp(name.c_str(), vs15generatorName, sizeof(vs15generatorName) - 6) != 0) { - return 0; + return nullptr; } const char* p = name.c_str() + sizeof(vs15generatorName) - 6; if (cmHasLiteralPrefix(p, " 2017")) { @@ -306,7 +306,7 @@ static const char* cmVS16GenName(const std::string& name, std::string& genName) { if (strncmp(name.c_str(), vs16generatorName, sizeof(vs16generatorName) - 6) != 0) { - return 0; + return nullptr; } const char* p = name.c_str() + sizeof(vs16generatorName) - 6; if (cmHasLiteralPrefix(p, " 2019")) { @@ -320,7 +320,7 @@ static const char* cmVS17GenName(const std::string& name, std::string& genName) { if (strncmp(name.c_str(), vs17generatorName, sizeof(vs17generatorName) - 6) != 0) { - return 0; + return nullptr; } const char* p = name.c_str() + sizeof(vs17generatorName) - 6; if (cmHasLiteralPrefix(p, " 2022")) { |