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/cmGlobalVisualStudio12Generator.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/cmGlobalVisualStudio12Generator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudio12Generator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGlobalVisualStudio12Generator.cxx b/Source/cmGlobalVisualStudio12Generator.cxx index 7e56a78..dbe3519 100644 --- a/Source/cmGlobalVisualStudio12Generator.cxx +++ b/Source/cmGlobalVisualStudio12Generator.cxx @@ -21,7 +21,7 @@ static const char* cmVS12GenName(const std::string& name, std::string& genName) { if (strncmp(name.c_str(), vs12generatorName, sizeof(vs12generatorName) - 6) != 0) { - return 0; + return nullptr; } const char* p = name.c_str() + sizeof(vs12generatorName) - 6; if (cmHasLiteralPrefix(p, " 2013")) { |