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

Unified Diff: xfa/fxfa/parser/cxfa_box.cpp

Issue 2095653002: Remove NULL in xfa/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master Created 4 years, 6 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
« no previous file with comments | « xfa/fxfa/include/xfa_rendercontext.h ('k') | xfa/fxfa/parser/cxfa_widgetdata.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/fxfa/parser/cxfa_box.cpp
diff --git a/xfa/fxfa/parser/cxfa_box.cpp b/xfa/fxfa/parser/cxfa_box.cpp
index cb5cf7f6b9a3652ab03385cb464b3fe5bddbe1f6..95b247a3711c5eeec3c85bc2b8ba5fc8fcccd54a 100644
--- a/xfa/fxfa/parser/cxfa_box.cpp
+++ b/xfa/fxfa/parser/cxfa_box.cpp
@@ -13,7 +13,7 @@ namespace {
void GetStrokesInternal(CXFA_Node* pNode,
CXFA_StrokeArray& strokes,
- FX_BOOL bNULL) {
+ FX_BOOL bNull) {
strokes.RemoveAll();
if (!pNode)
return;
@@ -25,7 +25,7 @@ void GetStrokesInternal(CXFA_Node* pNode,
CXFA_Corner(pNode->GetProperty(i, XFA_Element::Corner, i == 0));
if (corner || i == 0)
strokes.SetAt(j, corner);
- else if (bNULL)
+ else if (bNull)
strokes.SetAt(j, CXFA_Stroke(nullptr));
else if (i == 1)
strokes.SetAt(j, strokes[0]);
@@ -39,7 +39,7 @@ void GetStrokesInternal(CXFA_Node* pNode,
CXFA_Edge(pNode->GetProperty(i, XFA_Element::Edge, i == 0));
if (edge || i == 0)
strokes.SetAt(j, edge);
- else if (bNULL)
+ else if (bNull)
strokes.SetAt(j, CXFA_Stroke(nullptr));
else if (i == 1)
strokes.SetAt(j, strokes[1]);
@@ -159,7 +159,7 @@ int32_t CXFA_Box::Get3DStyle(FX_BOOL& bVisible, FX_FLOAT& fThickness) const {
CXFA_StrokeArray strokes;
GetStrokesInternal(m_pNode, strokes, TRUE);
- CXFA_Stroke stroke(NULL);
+ CXFA_Stroke stroke(nullptr);
int32_t iType = Style3D(strokes, stroke);
if (iType) {
bVisible = stroke.IsVisible();
« no previous file with comments | « xfa/fxfa/include/xfa_rendercontext.h ('k') | xfa/fxfa/parser/cxfa_widgetdata.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698