summaryrefslogtreecommitdiff
path: root/plugins/mTextControl/src/dataobject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mTextControl/src/dataobject.cpp')
-rw-r--r--plugins/mTextControl/src/dataobject.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/mTextControl/src/dataobject.cpp b/plugins/mTextControl/src/dataobject.cpp
index 53fcd0e2f7..a05a63d05c 100644
--- a/plugins/mTextControl/src/dataobject.cpp
+++ b/plugins/mTextControl/src/dataobject.cpp
@@ -128,7 +128,7 @@ HRESULT __stdcall CDataObject::QueryInterface(REFIID iid, void **ppvObject)
return S_OK;
}
- *ppvObject = 0;
+ *ppvObject = nullptr;
return E_NOINTERFACE;
}
@@ -163,7 +163,7 @@ HRESULT __stdcall CDataObject::GetData(FORMATETC *pFormatEtc, STGMEDIUM *pMedium
// found a match! transfer the data into the supplied storage-medium
//
pMedium->tymed = m_pFormatEtc[idx].tymed;
- pMedium->pUnkForRelease = 0;
+ pMedium->pUnkForRelease = nullptr;
switch (pMedium->tymed) {
case TYMED_HGLOBAL:
@@ -176,7 +176,7 @@ HRESULT __stdcall CDataObject::GetData(FORMATETC *pFormatEtc, STGMEDIUM *pMedium
default:
return DV_E_FORMATETC;
}
- if (pMedium->hBitmap == NULL) return STG_E_MEDIUMFULL;
+ if (pMedium->hBitmap == nullptr) return STG_E_MEDIUMFULL;
return S_OK;
}
@@ -210,7 +210,7 @@ HRESULT __stdcall CDataObject::QueryGetData(FORMATETC *pFormatEtc)
HRESULT __stdcall CDataObject::GetCanonicalFormatEtc(FORMATETC *, FORMATETC *pFormatEtcOut)
{
// Apparently we have to set this field to NULL even though we don't do anything else
- pFormatEtcOut->ptd = NULL;
+ pFormatEtcOut->ptd = nullptr;
return E_NOTIMPL;
}
@@ -267,7 +267,7 @@ HRESULT __stdcall CDataObject::EnumDAdvise(IEnumSTATDATA **)
//
HRESULT CreateDataObject(const FORMATETC *fmtetc, const STGMEDIUM *stgmeds, UINT count, IDataObject **ppDataObject)
{
- if (ppDataObject == 0)
+ if (ppDataObject == nullptr)
return E_INVALIDARG;
*ppDataObject = new CDataObject(fmtetc, stgmeds, count);