From a7c24ca48995cf2bf436156302f96b91bf135409 Mon Sep 17 00:00:00 2001 From: Goraf <22941576+Goraf@users.noreply.github.com> Date: Mon, 13 Nov 2017 15:03:31 +0100 Subject: Code modernize ... * replace 0/NULL with nullptr [using clang-tidy] --- plugins/mTextControl/src/enumformat.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/mTextControl/src/enumformat.cpp') diff --git a/plugins/mTextControl/src/enumformat.cpp b/plugins/mTextControl/src/enumformat.cpp index 27aceb5790..64ae07e3c3 100644 --- a/plugins/mTextControl/src/enumformat.cpp +++ b/plugins/mTextControl/src/enumformat.cpp @@ -55,7 +55,7 @@ private: // HRESULT CreateEnumFormatEtc(UINT nNumFormats, FORMATETC *pFormatEtc, IEnumFORMATETC **ppEnumFormatEtc) { - if (nNumFormats == 0 || pFormatEtc == 0 || ppEnumFormatEtc == 0) + if (nNumFormats == 0 || pFormatEtc == nullptr || ppEnumFormatEtc == nullptr) return E_INVALIDARG; *ppEnumFormatEtc = new CEnumFormatEtc(pFormatEtc, nNumFormats); @@ -149,7 +149,7 @@ HRESULT __stdcall CEnumFormatEtc::QueryInterface(REFIID iid, void **ppvObject) return S_OK; } else { - *ppvObject = 0; + *ppvObject = nullptr; return E_NOINTERFACE; } } @@ -165,7 +165,7 @@ HRESULT __stdcall CEnumFormatEtc::Next(ULONG celt, FORMATETC *pFormatEtc, ULONG ULONG copied = 0; // validate arguments - if (celt == 0 || pFormatEtc == 0) + if (celt == 0 || pFormatEtc == nullptr) return E_INVALIDARG; // copy FORMATETC structures into caller's buffer @@ -176,7 +176,7 @@ HRESULT __stdcall CEnumFormatEtc::Next(ULONG celt, FORMATETC *pFormatEtc, ULONG } // store result - if (pceltFetched != 0) + if (pceltFetched != nullptr) *pceltFetched = copied; // did we copy all that was requested? -- cgit v1.2.3