cmVSSetupHelper: Use in-class member initialization

This commit is contained in:
Brad King committed 2018-06-22 10:07:09 -04:00
1 parent ef5e2e8a62
commit d548994afc
1 file changed
+4 -9
+4 -9
View File
@@ -107,16 +107,11 @@ struct VSInstanceInfo
std::wstring InstanceId;
std::wstring VSInstallLocation;
std::wstring Version;
ULONGLONG ullVersion;
bool IsWin10SDKInstalled;
bool IsWin81SDKInstalled;
ULONGLONG ullVersion = 0;
bool IsWin10SDKInstalled = false;
bool IsWin81SDKInstalled = false;
VSInstanceInfo()
{
InstanceId = VSInstallLocation = Version = L"";
ullVersion = 0;
IsWin10SDKInstalled = IsWin81SDKInstalled = false;
}
VSInstanceInfo() = default;
std::string GetInstallLocation() const;
};