clang-tidy: fix modernize-use-default-member-init lints

This commit is contained in:
Ben Boeckel
2023-07-26 15:42:35 -04:00
parent 084aa40ecb
commit efd9398844

View File

@@ -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);