From 1c0172cca4f1e90679321912e20436a7f42f122d Mon Sep 17 00:00:00 2001 From: Goraf <22941576+Goraf@users.noreply.github.com> Date: Sat, 24 Feb 2018 15:32:06 +0100 Subject: more nullptr --- plugins/mTextControl/src/FormattedTextDraw.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'plugins/mTextControl/src') diff --git a/plugins/mTextControl/src/FormattedTextDraw.h b/plugins/mTextControl/src/FormattedTextDraw.h index 8f318717e6..c44d1f25e5 100644 --- a/plugins/mTextControl/src/FormattedTextDraw.h +++ b/plugins/mTextControl/src/FormattedTextDraw.h @@ -59,10 +59,10 @@ public: { HDC hdcScreen; - hdcScreen = GetDC(NULL); + hdcScreen = GetDC(nullptr); nPixelsPerInchX = GetDeviceCaps(hdcScreen, LOGPIXELSX); nPixelsPerInchY = GetDeviceCaps(hdcScreen, LOGPIXELSY); - ReleaseDC(NULL, hdcScreen); + ReleaseDC(nullptr, hdcScreen); SetRectEmpty(&m_rcClient); SetRectEmpty(&m_rcViewInset); @@ -71,8 +71,8 @@ public: InitDefaultCharFormat(); InitDefaultParaFormat(); - m_spTextServices = NULL; - m_spTextDocument = NULL; + m_spTextServices = nullptr; + m_spTextDocument = nullptr; m_dwPropertyBits = TXTBIT_RICHTEXT | TXTBIT_MULTILINE | TXTBIT_WORDWRAP | TXTBIT_USECURRENTBKG; m_dwScrollbar = 0; @@ -82,9 +82,9 @@ public: ~CFormattedTextDraw() { free(m_pCF); - if (m_spTextServices != NULL) + if (m_spTextServices != nullptr) m_spTextServices->Release(); - if (m_spTextDocument != NULL) + if (m_spTextDocument != nullptr) m_spTextDocument->Release(); } @@ -93,7 +93,7 @@ public: /* [in] */ REFIID, /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject) { - *ppvObject = NULL; + *ppvObject = nullptr; return S_FALSE; } -- cgit v1.2.3