summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/windows/qwindowsole.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2019-01-24 08:54:38 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2019-01-28 21:14:58 +0000
commit61d50cbc96e5331218a6a4e5614f50211f06c718 (patch)
tree83571cad118c7c5cd70126ae2a6db01d2d462d93 /src/plugins/platforms/windows/qwindowsole.cpp
parent850858cce6191593aaab3176932bc04a6f97f202 (diff)
Windows/Direct2d QPA: Use nullptr
Change-Id: I6ce01caa58de78e0eb61e243ee1e7b05cc1f5568 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'src/plugins/platforms/windows/qwindowsole.cpp')
-rw-r--r--src/plugins/platforms/windows/qwindowsole.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/plugins/platforms/windows/qwindowsole.cpp b/src/plugins/platforms/windows/qwindowsole.cpp
index ad0442c8bd..e9c3f2cbf6 100644
--- a/src/plugins/platforms/windows/qwindowsole.cpp
+++ b/src/plugins/platforms/windows/qwindowsole.cpp
@@ -84,7 +84,7 @@ QWindowsOleDataObject::~QWindowsOleDataObject() = default;
void QWindowsOleDataObject::releaseQt()
{
- data = 0;
+ data = nullptr;
}
QMimeData *QWindowsOleDataObject::mimeData() const
@@ -142,7 +142,7 @@ QWindowsOleDataObject::QueryGetData(LPFORMATETC pformatetc)
STDMETHODIMP
QWindowsOleDataObject::GetCanonicalFormatEtc(LPFORMATETC, LPFORMATETC pformatetcOut)
{
- pformatetcOut->ptd = NULL;
+ pformatetcOut->ptd = nullptr;
return ResultFromScode(E_NOTIMPL);
}
@@ -188,7 +188,7 @@ QWindowsOleDataObject::EnumFormatEtc(DWORD dwDirection, LPENUMFORMATETC FAR* ppe
formatetc.cfFormat = CLIPFORMAT(CF_PERFORMEDDROPEFFECT);
formatetc.dwAspect = DVASPECT_CONTENT;
formatetc.lindex = -1;
- formatetc.ptd = NULL;
+ formatetc.ptd = nullptr;
formatetc.tymed = TYMED_HGLOBAL;
fmtetcs.append(formatetc);
}
@@ -197,7 +197,7 @@ QWindowsOleDataObject::EnumFormatEtc(DWORD dwDirection, LPENUMFORMATETC FAR* ppe
*ppenumFormatEtc = enumFmtEtc;
if (enumFmtEtc->isNull()) {
delete enumFmtEtc;
- *ppenumFormatEtc = NULL;
+ *ppenumFormatEtc = nullptr;
sc = E_OUTOFMEMORY;
}
@@ -295,7 +295,7 @@ QWindowsOleEnumFmtEtc::Next(ULONG celt, LPFORMATETC rgelt, ULONG FAR* pceltFetch
ULONG i=0;
ULONG nOffset;
- if (rgelt == NULL)
+ if (rgelt == nullptr)
return ResultFromScode(E_INVALIDARG);
while (i < celt) {
@@ -311,7 +311,7 @@ QWindowsOleEnumFmtEtc::Next(ULONG celt, LPFORMATETC rgelt, ULONG FAR* pceltFetch
m_nIndex += i;
- if (pceltFetched != NULL)
+ if (pceltFetched != nullptr)
*pceltFetched = i;
if (i != celt)
@@ -354,7 +354,7 @@ QWindowsOleEnumFmtEtc::Reset()
STDMETHODIMP
QWindowsOleEnumFmtEtc::Clone(LPENUMFORMATETC FAR* newEnum)
{
- if (newEnum == NULL)
+ if (newEnum == nullptr)
return ResultFromScode(E_INVALIDARG);
QWindowsOleEnumFmtEtc *result = new QWindowsOleEnumFmtEtc(m_lpfmtetcs);
@@ -371,7 +371,7 @@ QWindowsOleEnumFmtEtc::Clone(LPENUMFORMATETC FAR* newEnum)
bool QWindowsOleEnumFmtEtc::copyFormatEtc(LPFORMATETC dest, const FORMATETC *src) const
{
- if (dest == NULL || src == NULL)
+ if (dest == nullptr || src == nullptr)
return false;
*dest = *src;