summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_occur.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fxfa/parser/cxfa_occur.cpp')
-rw-r--r--xfa/fxfa/parser/cxfa_occur.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/xfa/fxfa/parser/cxfa_occur.cpp b/xfa/fxfa/parser/cxfa_occur.cpp
index 441394c567..7be3f7066d 100644
--- a/xfa/fxfa/parser/cxfa_occur.cpp
+++ b/xfa/fxfa/parser/cxfa_occur.cpp
@@ -40,14 +40,12 @@ CXFA_Occur::CXFA_Occur(CXFA_Document* doc, XFA_PacketType packet)
CXFA_Occur::~CXFA_Occur() {}
int32_t CXFA_Occur::GetMax() {
- pdfium::Optional<int32_t> max =
- JSObject()->TryInteger(XFA_Attribute::Max, true);
+ Optional<int32_t> max = JSObject()->TryInteger(XFA_Attribute::Max, true);
return max ? *max : GetMin();
}
int32_t CXFA_Occur::GetMin() {
- pdfium::Optional<int32_t> min =
- JSObject()->TryInteger(XFA_Attribute::Min, true);
+ Optional<int32_t> min = JSObject()->TryInteger(XFA_Attribute::Min, true);
return min && *min >= 0 ? *min : 1;
}
@@ -55,7 +53,7 @@ std::tuple<int32_t, int32_t, int32_t> CXFA_Occur::GetOccurInfo() {
int32_t iMin = GetMin();
int32_t iMax = GetMax();
- pdfium::Optional<int32_t> init =
+ Optional<int32_t> init =
JSObject()->TryInteger(XFA_Attribute::Initial, false);
return {iMin, iMax, init && *init >= iMin ? *init : iMin};
}