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/cmIDEOptions.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/cmIDEOptions.cxx')
-rw-r--r-- | Source/cmIDEOptions.cxx | 6 |
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; } |