summaryrefslogtreecommitdiff
path: root/Source/cmGlobalVisualStudio11Generator.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2022-11-22 13:51:48 -0500
committerBen Boeckel <ben.boeckel@kitware.com>2022-11-29 12:39:29 -0500
commit1b929ba8e41b49ab9c30c095bf9585b3ab85656b (patch)
tree36e141a00880df62f0502d6b154e1708eb7afbc0 /Source/cmGlobalVisualStudio11Generator.cxx
parentbcada09e451b4765ec1239ad11a282ed3ccbc71b (diff)
downloadcmake-1b929ba8e41b49ab9c30c095bf9585b3ab85656b.tar.gz
clang-tidy: fix `modernize-use-nullptr` lints
Diffstat (limited to 'Source/cmGlobalVisualStudio11Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio11Generator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGlobalVisualStudio11Generator.cxx b/Source/cmGlobalVisualStudio11Generator.cxx
index 75e3df8c06..c5b4340b34 100644
--- a/Source/cmGlobalVisualStudio11Generator.cxx
+++ b/Source/cmGlobalVisualStudio11Generator.cxx
@@ -22,7 +22,7 @@ static const char* cmVS11GenName(const std::string& name, std::string& genName)
{
if (strncmp(name.c_str(), vs11generatorName,
sizeof(vs11generatorName) - 6) != 0) {
- return 0;
+ return nullptr;
}
const char* p = name.c_str() + sizeof(vs11generatorName) - 6;
if (cmHasLiteralPrefix(p, " 2012")) {