summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_occur.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2018-01-10 19:51:41 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-01-10 19:51:41 +0000
commit678b97f3fc747cc203c036c01d23fe790b230b85 (patch)
tree1669701f109d2b5575a6983a37245cd14cd7805a /xfa/fxfa/parser/cxfa_occur.h
parent78d841011655b868486a45e0fe865a972742aa0c (diff)
downloadpdfium-678b97f3fc747cc203c036c01d23fe790b230b85.tar.xz
Rename GetOccur to GetOccurIfExists
This CL makes it explicit that GetOccurIfExists can return nullptr and fixes up the call sites. Change-Id: I542d0098aa316632239df7f1a5796b4ffe6ba202 Reviewed-on: https://pdfium-review.googlesource.com/22676 Reviewed-by: Ryan Harrison <rharrison@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_occur.h')
-rw-r--r--xfa/fxfa/parser/cxfa_occur.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/xfa/fxfa/parser/cxfa_occur.h b/xfa/fxfa/parser/cxfa_occur.h
index 3367b07ae5..070c15ca46 100644
--- a/xfa/fxfa/parser/cxfa_occur.h
+++ b/xfa/fxfa/parser/cxfa_occur.h
@@ -13,6 +13,9 @@
class CXFA_Occur : public CXFA_Node {
public:
+ static constexpr int32_t kDefaultMax = 1;
+ static constexpr int32_t kDefaultMin = 1;
+
CXFA_Occur(CXFA_Document* doc, XFA_PacketType packet);
~CXFA_Occur() override;