summaryrefslogtreecommitdiff
path: root/zen/com_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'zen/com_util.h')
-rw-r--r--zen/com_util.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/zen/com_util.h b/zen/com_util.h
index 2845e352..fe02eadd 100644
--- a/zen/com_util.h
+++ b/zen/com_util.h
@@ -82,7 +82,7 @@ std::vector<ComPtr<T> > convertEnum(const ComPtr<U>& enumObj)
if (enumUnknown)
{
ComPtr<IUnknown> itemTmp;
- while (enumUnknown->Next(1, itemTmp.init(), NULL) == S_OK) //returns S_FALSE == 1 when finished! Don't use SUCCEEDED()!!!
+ while (enumUnknown->Next(1, itemTmp.init(), nullptr) == S_OK) //returns S_FALSE == 1 when finished! Don't use SUCCEEDED()!!!
{
ComPtr<T> itemNew = com_dynamic_cast<T>(itemTmp);
if (itemNew)
@@ -103,11 +103,11 @@ std::wstring getText(ComPtr<T> comObj, MemFun memFun)
if (!comObj)
return std::wstring();
- BSTR bstr = NULL;
+ BSTR bstr = nullptr;
if (FAILED((comObj.get()->*memFun)(&bstr)))
return std::wstring();
- if (bstr) //NULL means "no text"
+ if (bstr) //nullptr means "no text"
{
text = std::wstring(bstr, ::SysStringLen(bstr)); //correctly copy 0-characters
::SysFreeString(bstr);
bgstack15