summaryrefslogtreecommitdiffstats
path: root/Source/cmVSSetupHelper.h
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2022-11-22 18:51:48 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2022-11-29 17:39:29 (GMT)
commit1b929ba8e41b49ab9c30c095bf9585b3ab85656b (patch)
tree36e141a00880df62f0502d6b154e1708eb7afbc0 /Source/cmVSSetupHelper.h
parentbcada09e451b4765ec1239ad11a282ed3ccbc71b (diff)
downloadCMake-1b929ba8e41b49ab9c30c095bf9585b3ab85656b.zip
CMake-1b929ba8e41b49ab9c30c095bf9585b3ab85656b.tar.gz
CMake-1b929ba8e41b49ab9c30c095bf9585b3ab85656b.tar.bz2
clang-tidy: fix `modernize-use-nullptr` lints
Diffstat (limited to 'Source/cmVSSetupHelper.h')
-rw-r--r--Source/cmVSSetupHelper.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/Source/cmVSSetupHelper.h b/Source/cmVSSetupHelper.h
index ebcb28e..ea94d37 100644
--- a/Source/cmVSSetupHelper.h
+++ b/Source/cmVSSetupHelper.h
@@ -21,13 +21,13 @@ public:
SmartCOMPtr(T* p)
{
ptr = p;
- if (ptr != NULL)
+ if (ptr != nullptr)
ptr->AddRef();
}
SmartCOMPtr(const SmartCOMPtr<T>& sptr)
{
ptr = sptr.ptr;
- if (ptr != NULL)
+ if (ptr != nullptr)
ptr->AddRef();
}
T** operator&() { return &ptr; }
@@ -36,7 +36,7 @@ public:
{
if (*this != p) {
ptr = p;
- if (ptr != NULL)
+ if (ptr != nullptr)
ptr->AddRef();
}
return *this;
@@ -45,7 +45,7 @@ public:
template <class I>
HRESULT QueryInterface(REFCLSID rclsid, I** pp)
{
- if (pp != NULL) {
+ if (pp != nullptr) {
return ptr->QueryInterface(rclsid, (void**)pp);
} else {
return E_FAIL;
@@ -60,12 +60,12 @@ public:
}
~SmartCOMPtr()
{
- if (ptr != NULL)
+ if (ptr != nullptr)
ptr->Release();
}
private:
- T* ptr = NULL;
+ T* ptr = nullptr;
};
class SmartBSTR
@@ -79,7 +79,7 @@ public:
~SmartBSTR() throw() { ::SysFreeString(str); }
private:
- BSTR str = NULL;
+ BSTR str = nullptr;
};
struct VSInstanceInfo