summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-06-22 10:03:00 -0400
committerBrad King <brad.king@kitware.com>2018-06-22 10:07:09 -0400
commitd548994afcfccbff17fcba5698ed10f083142059 (patch)
treebd37f9ef8ec82ff70ac041895afe9b49ad33c25b /Source
parentef5e2e8a62982ebccf4883fc7a01cdb66f8ca183 (diff)
downloadcmake-d548994afcfccbff17fcba5698ed10f083142059.tar.gz
cmVSSetupHelper: Use in-class member initialization
Diffstat (limited to 'Source')
-rw-r--r--Source/cmVSSetupHelper.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/Source/cmVSSetupHelper.h b/Source/cmVSSetupHelper.h
index 368341c327..8ce36de4af 100644
--- a/Source/cmVSSetupHelper.h
+++ b/Source/cmVSSetupHelper.h
@@ -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;
};