diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2023-07-26 19:42:35 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2023-07-30 22:33:07 (GMT) |
commit | efd9398844eb38b8e0f2faa0fd684a8b4cb1b741 (patch) | |
tree | 8a294957b0810897769b6693499ed2f1ae6313d4 /Source/cmGlobalXCodeGenerator.cxx | |
parent | 084aa40ecb4ce50029db61b19b7ed614d59d0a0d (diff) | |
download | CMake-efd9398844eb38b8e0f2faa0fd684a8b4cb1b741.zip CMake-efd9398844eb38b8e0f2faa0fd684a8b4cb1b741.tar.gz CMake-efd9398844eb38b8e0f2faa0fd684a8b4cb1b741.tar.bz2 |
clang-tidy: fix `modernize-use-default-member-init` lints
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-rw-r--r-- | Source/cmGlobalXCodeGenerator.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index 68955ae..aad1fe6 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -105,15 +105,13 @@ public: class cmGlobalXCodeGenerator::BuildObjectListOrString { cmGlobalXCodeGenerator* Generator; - cmXCodeObject* Group; - bool Empty; + cmXCodeObject* Group = nullptr; + bool Empty = true; std::string String; public: BuildObjectListOrString(cmGlobalXCodeGenerator* gen, bool buildObjectList) : Generator(gen) - , Group(nullptr) - , Empty(true) { if (buildObjectList) { this->Group = this->Generator->CreateObject(cmXCodeObject::OBJECT_LIST); |