summaryrefslogtreecommitdiffstats
path: root/Source/cmVSSetupHelper.h
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2022-11-22 18:37:59 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2022-11-29 17:39:29 (GMT)
commitf8a2926986de51ce99948cf160e882e57bf5f384 (patch)
treeaa325c04415235fcc913579b8b578c68463a67a8 /Source/cmVSSetupHelper.h
parent63453bf4ef6aea31f072c559dda656fbd845ab41 (diff)
downloadCMake-f8a2926986de51ce99948cf160e882e57bf5f384.zip
CMake-f8a2926986de51ce99948cf160e882e57bf5f384.tar.gz
CMake-f8a2926986de51ce99948cf160e882e57bf5f384.tar.bz2
clang-tidy: fix `modernize-use-default-member-init` lints
Diffstat (limited to 'Source/cmVSSetupHelper.h')
-rw-r--r--Source/cmVSSetupHelper.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/cmVSSetupHelper.h b/Source/cmVSSetupHelper.h
index a16f00b..6549b93 100644
--- a/Source/cmVSSetupHelper.h
+++ b/Source/cmVSSetupHelper.h
@@ -17,7 +17,7 @@ template <class T>
class SmartCOMPtr
{
public:
- SmartCOMPtr() { ptr = NULL; }
+ SmartCOMPtr() {}
SmartCOMPtr(T* p)
{
ptr = p;
@@ -65,13 +65,13 @@ public:
}
private:
- T* ptr;
+ T* ptr = NULL;
};
class SmartBSTR
{
public:
- SmartBSTR() { str = NULL; }
+ SmartBSTR() {}
SmartBSTR(const SmartBSTR& src) = delete;
SmartBSTR& operator=(const SmartBSTR& src) = delete;
operator BSTR() const { return str; }
@@ -79,7 +79,7 @@ public:
~SmartBSTR() throw() { ::SysFreeString(str); }
private:
- BSTR str;
+ BSTR str = NULL;
};
struct VSInstanceInfo
@@ -129,7 +129,7 @@ private:
SmartCOMPtr<ISetupConfiguration2> setupConfig2;
SmartCOMPtr<ISetupHelper> setupHelper;
// used to indicate failure in Initialize(), so we don't have to call again
- bool initializationFailure;
+ bool initializationFailure = false;
// indicated if COM initialization is successful
HRESULT comInitialized;
// current best instance of VS selected