cmVisualStudio10TargetGenerator: Use inline member initialization

This commit is contained in:
Brad King
2024-12-03 09:43:26 -05:00
parent c4d556ccd8
commit fec276e632
2 changed files with 7 additions and 10 deletions

View File

@@ -299,9 +299,6 @@ cmVisualStudio10TargetGenerator::cmVisualStudio10TargetGenerator(
&this->NsightTegraVersion[0], &this->NsightTegraVersion[1],
&this->NsightTegraVersion[2], &this->NsightTegraVersion[3]);
this->MSTools = !this->NsightTegra && !this->Android;
this->Managed = false;
this->TargetCompileAsWinRT = false;
this->IsMissingFiles = false;
this->DefaultArtifactDir =
cmStrCat(this->LocalGenerator->GetCurrentBinaryDirectory(), '/',
this->LocalGenerator->GetTargetDirectory(this->GeneratorTarget));

View File

@@ -234,7 +234,7 @@ private:
std::string LangForClCompile;
VsProjectType ProjectType;
bool InSourceBuild;
bool InSourceBuild = false;
std::vector<std::string> Configurations;
std::vector<TargetsFileAndConfigs> TargetsFileAndConfigsVec;
cmGeneratorTarget* const GeneratorTarget;
@@ -242,14 +242,14 @@ private:
std::string const Platform;
std::string const Name;
std::string const GUID;
bool MSTools;
bool Managed;
bool NsightTegra;
bool Android;
bool MSTools = false;
bool Managed = false;
bool NsightTegra = false;
bool Android = false;
bool HaveCustomCommandDepfile = false;
std::map<std::string, bool> ScanSourceForModuleDependencies;
unsigned int NsightTegraVersion[4];
bool TargetCompileAsWinRT;
bool TargetCompileAsWinRT = false;
std::set<std::string> IPOEnabledConfigurations;
std::set<std::string> ASanEnabledConfigurations;
std::set<std::string> FuzzerEnabledConfigurations;
@@ -257,7 +257,7 @@ private:
cmGlobalVisualStudio10Generator* const GlobalGenerator;
cmLocalVisualStudio10Generator* const LocalGenerator;
std::set<std::string> CSharpCustomCommandNames;
bool IsMissingFiles;
bool IsMissingFiles = false;
std::vector<std::string> AddedFiles;
std::string DefaultArtifactDir;
bool AddedDefaultCertificate = false;