diff options
author | Tom Sepez <tsepez@chromium.org> | 2016-02-03 16:38:30 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2016-02-03 16:38:30 -0800 |
commit | 99ddbfbcc3d0e8a52c8f8a4ec22462d9e00c1c6a (patch) | |
tree | 78c6b05d9295e31aa2640aaa280c89e2a5e4fbd0 /xfa/src/fxfa/src/parser/xfa_layout_itemlayout.cpp | |
parent | 18d8521c73b65a3e2546372a9e87c87664937b72 (diff) | |
download | pdfium-99ddbfbcc3d0e8a52c8f8a4ec22462d9e00c1c6a.tar.xz |
Make CXFA_Data sub-classes ctors explicit.
Remove implicit CXFA_Node* operator.
Add bool() operator.
Remove IsExistInXML() which duplicates bool operator.
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1663313002 .
Diffstat (limited to 'xfa/src/fxfa/src/parser/xfa_layout_itemlayout.cpp')
-rw-r--r-- | xfa/src/fxfa/src/parser/xfa_layout_itemlayout.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xfa/src/fxfa/src/parser/xfa_layout_itemlayout.cpp b/xfa/src/fxfa/src/parser/xfa_layout_itemlayout.cpp index 8e9da4d3bf..cbfdb09fc4 100644 --- a/xfa/src/fxfa/src/parser/xfa_layout_itemlayout.cpp +++ b/xfa/src/fxfa/src/parser/xfa_layout_itemlayout.cpp @@ -3010,7 +3010,7 @@ FX_BOOL CXFA_ItemLayoutProcessor::JudgeLeaderOrTrailerForOccur( if (!pTemplate) { pTemplate = pFormNode; } - CXFA_Occur NodeOccur = pTemplate->GetFirstChildByClass(XFA_ELEMENT_Occur); + CXFA_Occur NodeOccur(pTemplate->GetFirstChildByClass(XFA_ELEMENT_Occur)); int32_t iMax = NodeOccur.GetMax(); if (iMax > -1) { int32_t iCount = |