HRESULT DereferenceAndUnboxValue(ICorDebugValue * pValue, ICorDebugValue** ppOutputValue, BOOL * pIsNull)
{
HRESULT Status = S_OK;
- *ppOutputValue = NULL;
- if (pIsNull != NULL) *pIsNull = FALSE;
+ *ppOutputValue = nullptr;
+ if (pIsNull != nullptr) *pIsNull = FALSE;
ToRelease<ICorDebugReferenceValue> pReferenceValue;
Status = pValue->QueryInterface(IID_ICorDebugReferenceValue, (LPVOID*) &pReferenceValue);
}
else
{
- if(pIsNull != NULL) *pIsNull = TRUE;
+ if(pIsNull != nullptr) *pIsNull = TRUE;
*ppOutputValue = pValue;
(*ppOutputValue)->AddRef();
return S_OK;
HRESULT Status = S_OK;
ToRelease<ICorDebugValue> pValue;
- IfFailRet(DereferenceAndUnboxValue(pInputValue, &pValue, NULL));
+ IfFailRet(DereferenceAndUnboxValue(pInputValue, &pValue, nullptr));
mdTypeDef currentTypeDef;
ToRelease<ICorDebugClass> pClass;
ULONG32 cbSize;
IfFailRet(pValue->GetSize(&cbSize));
ArrayHolder<BYTE> rgbValue = new (std::nothrow) BYTE[cbSize];
- if (rgbValue == NULL)
+ if (rgbValue == nullptr)
{
return E_OUTOFMEMORY;
}
// See the LICENSE file in the project root for more information.
HRESULT PrintValue(ICorDebugValue *pInputValue, std::string &output, bool escape = true);
-HRESULT DereferenceAndUnboxValue(ICorDebugValue * pValue, ICorDebugValue** ppOutputValue, BOOL * pIsNull = NULL);
+HRESULT DereferenceAndUnboxValue(ICorDebugValue * pValue, ICorDebugValue** ppOutputValue, BOOL * pIsNull = nullptr);
ToRelease<ICorDebugType> pType;
ToRelease<ICorDebugModule> pModule;
IfFailRet(pValue->QueryInterface(IID_ICorDebugValue2, (LPVOID *) &pValue2));
- if(pTypeCast == NULL)
+ if(pTypeCast == nullptr)
IfFailRet(pValue2->GetExactType(&pType));
else
{