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

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

Issue 2031873003: Get rid of NULLs in xfa/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium@nullptr_fpdfsdk
Patch Set: 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_caption.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 fc572017506597191a3e79fc4cef35064bb037b5..ec05a87aa7d3a8a437b1f9f27fde81fefcdeec43 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 bnullptr) {
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 (bnullptr)
strokes.SetAt(j, CXFA_Stroke(nullptr));
else if (i == 1)
strokes.SetAt(j, strokes[0]);
@@ -38,7 +38,7 @@ void GetStrokesInternal(CXFA_Node* pNode,
CXFA_Edge edge = CXFA_Edge(pNode->GetProperty(i, XFA_ELEMENT_Edge, i == 0));
if (edge || i == 0)
strokes.SetAt(j, edge);
- else if (bNULL)
+ else if (bnullptr)
strokes.SetAt(j, CXFA_Stroke(nullptr));
else if (i == 1)
strokes.SetAt(j, strokes[1]);
@@ -158,7 +158,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_caption.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698