Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(107)

Unified Diff: core/fxge/ge/fx_ge_device.cpp

Issue 2032613003: Get rid of NULLs in core/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: s/NULL/nullptr/ Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: core/fxge/ge/fx_ge_device.cpp
diff --git a/core/fxge/ge/fx_ge_device.cpp b/core/fxge/ge/fx_ge_device.cpp
index b9bd133e57de7c22fbeaa27ffc9fab5399148326..d0f04da563426196f9b530ca814f121bc6ff6ac4 100644
--- a/core/fxge/ge/fx_ge_device.cpp
+++ b/core/fxge/ge/fx_ge_device.cpp
@@ -7,8 +7,8 @@
#include "core/fxge/include/fx_ge.h"
CFX_RenderDevice::CFX_RenderDevice() {
- m_pDeviceDriver = NULL;
- m_pBitmap = NULL;
+ m_pDeviceDriver = nullptr;
+ m_pBitmap = nullptr;
}
CFX_RenderDevice::~CFX_RenderDevice() {
delete m_pDeviceDriver;
@@ -193,7 +193,7 @@ FX_BOOL CFX_RenderDevice::DrawPathWithBlend(
if (bThin) {
strokecolor = (((fill_alpha >> 2) << 24) | (strokecolor & 0x00ffffff));
}
- CFX_Matrix* pMatrix = NULL;
+ CFX_Matrix* pMatrix = nullptr;
if (pObject2Device && !pObject2Device->IsIdentity()) {
pMatrix = (CFX_Matrix*)pObject2Device;
}
@@ -255,7 +255,7 @@ FX_BOOL CFX_RenderDevice::DrawFillStrokePath(
bitmap.Clear(0);
Backdrop.Copy(&bitmap);
} else {
- if (!m_pDeviceDriver->GetDIBits(&bitmap, rect.left, rect.top, NULL)) {
+ if (!m_pDeviceDriver->GetDIBits(&bitmap, rect.left, rect.top, nullptr)) {
return FALSE;
}
Backdrop.Copy(&bitmap);

Powered by Google App Engine
This is Rietveld 408576698