diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-02-26 22:20:02 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-02-26 22:20:02 +0000 |
commit | 821c7236cea91645d32e1028b6f40d500961441c (patch) | |
tree | c95bc54d8c81addd09980d025535af661be19ab1 /xfa | |
parent | e24d5a885ecde400936796b104f1950f756d90d2 (diff) | |
download | pdfium-821c7236cea91645d32e1028b6f40d500961441c.tar.xz |
Shrink some tables and kill dead code in xfa.
Change-Id: Ic1260417e7d1475dd518655b2ab08f0184955d88
Reviewed-on: https://pdfium-review.googlesource.com/27170
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa')
-rw-r--r-- | xfa/fxfa/fxfa_basic.h | 4 | ||||
-rw-r--r-- | xfa/fxfa/parser/cxfa_localevalue.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/xfa/fxfa/fxfa_basic.h b/xfa/fxfa/fxfa_basic.h index 96b483d978..d040bb3873 100644 --- a/xfa/fxfa/fxfa_basic.h +++ b/xfa/fxfa/fxfa_basic.h @@ -95,7 +95,7 @@ enum XFA_XDPPACKET_FLAGS { XFA_XDPPACKET_FLAGS_SUPPORTMANY = 16, }; -enum class XFA_AttributeEnum : uint32_t { +enum class XFA_AttributeEnum : uint16_t { Asterisk, Slash, Backslash, @@ -611,7 +611,7 @@ enum class XFA_Attribute : uint8_t { Unknown = 255, }; -enum class XFA_Element : int32_t { +enum class XFA_Element : int16_t { Unknown = -1, Ps, diff --git a/xfa/fxfa/parser/cxfa_localevalue.cpp b/xfa/fxfa/parser/cxfa_localevalue.cpp index 09e3577887..756d4c2307 100644 --- a/xfa/fxfa/parser/cxfa_localevalue.cpp +++ b/xfa/fxfa/parser/cxfa_localevalue.cpp @@ -430,8 +430,8 @@ bool CXFA_LocaleValue::ValidateCanonicalValue(const WideString& wsValue, bool CXFA_LocaleValue::ValidateCanonicalDate(const WideString& wsDate, CFX_DateTime* unDate) { - static const uint16_t LastDay[12] = {31, 28, 31, 30, 31, 30, - 31, 31, 30, 31, 30, 31}; + static const uint8_t LastDay[12] = {31, 28, 31, 30, 31, 30, + 31, 31, 30, 31, 30, 31}; static const uint16_t wCountY = 4; static const uint16_t wCountM = 2; static const uint16_t wCountD = 2; |