summaryrefslogtreecommitdiffstats
path: root/Source/cmIDEOptions.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2022-11-22 18:51:48 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2022-11-29 17:39:29 (GMT)
commit1b929ba8e41b49ab9c30c095bf9585b3ab85656b (patch)
tree36e141a00880df62f0502d6b154e1708eb7afbc0 /Source/cmIDEOptions.cxx
parentbcada09e451b4765ec1239ad11a282ed3ccbc71b (diff)
downloadCMake-1b929ba8e41b49ab9c30c095bf9585b3ab85656b.zip
CMake-1b929ba8e41b49ab9c30c095bf9585b3ab85656b.tar.gz
CMake-1b929ba8e41b49ab9c30c095bf9585b3ab85656b.tar.bz2
clang-tidy: fix `modernize-use-nullptr` lints
Diffstat (limited to 'Source/cmIDEOptions.cxx')
-rw-r--r--Source/cmIDEOptions.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmIDEOptions.cxx b/Source/cmIDEOptions.cxx
index 31e3a0e..bb36db3 100644
--- a/Source/cmIDEOptions.cxx
+++ b/Source/cmIDEOptions.cxx
@@ -20,9 +20,9 @@ cmIDEOptions::cmIDEOptions()
this->AllowDefine = true;
this->DoingInclude = false;
this->AllowSlash = false;
- this->DoingFollowing = 0;
+ this->DoingFollowing = nullptr;
for (int i = 0; i < FlagTableCount; ++i) {
- this->FlagTable[i] = 0;
+ this->FlagTable[i] = nullptr;
}
}
@@ -47,7 +47,7 @@ void cmIDEOptions::HandleFlag(std::string const& flag)
// If the last option expected a following value, this is it.
if (this->DoingFollowing) {
this->FlagMapUpdate(this->DoingFollowing, flag);
- this->DoingFollowing = 0;
+ this->DoingFollowing = nullptr;
return;
}