summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalXCodeGenerator.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2023-07-26 19:42:35 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2023-07-30 22:33:07 (GMT)
commitefd9398844eb38b8e0f2faa0fd684a8b4cb1b741 (patch)
tree8a294957b0810897769b6693499ed2f1ae6313d4 /Source/cmGlobalXCodeGenerator.cxx
parent084aa40ecb4ce50029db61b19b7ed614d59d0a0d (diff)
downloadCMake-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.cxx6
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);