diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-11-08 18:02:12 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-11-08 18:02:12 +0000 |
commit | 6bccc1228ddfccae296f8f4236512caad7cbc1c9 (patch) | |
tree | be2115f4aabd95938a3babdf1b9229a1a633e20a /xfa/fxfa/parser/cxfa_widgetdata.cpp | |
parent | 1d86501aa9ee49890fbb43db60333a42f947cd74 (diff) | |
download | pdfium-6bccc1228ddfccae296f8f4236512caad7cbc1c9.tar.xz |
Convert XFA_ATTRIBUTETYPE to an enum class
This CL converts XFA_ATTRIBUTETYPE to an enum class XFA_AttributeType.
Change-Id: I76185da08fcc8a7a4026ce430238db1b2cecf192
Reviewed-on: https://pdfium-review.googlesource.com/18051
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_widgetdata.cpp')
-rw-r--r-- | xfa/fxfa/parser/cxfa_widgetdata.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xfa/fxfa/parser/cxfa_widgetdata.cpp b/xfa/fxfa/parser/cxfa_widgetdata.cpp index db749c51cc..2abeea426d 100644 --- a/xfa/fxfa/parser/cxfa_widgetdata.cpp +++ b/xfa/fxfa/parser/cxfa_widgetdata.cpp @@ -203,7 +203,7 @@ XFA_ATTRIBUTEENUM GetAttributeDefaultValue_Enum(XFA_Element eElement, uint32_t dwPacket) { void* pValue; if (XFA_GetAttributeDefaultValue(pValue, eElement, eAttribute, - XFA_ATTRIBUTETYPE_Enum, dwPacket)) { + XFA_AttributeType::Enum, dwPacket)) { return (XFA_ATTRIBUTEENUM)(uintptr_t)pValue; } return XFA_ATTRIBUTEENUM_Unknown; @@ -214,7 +214,7 @@ WideStringView GetAttributeDefaultValue_Cdata(XFA_Element eElement, uint32_t dwPacket) { void* pValue; if (XFA_GetAttributeDefaultValue(pValue, eElement, eAttribute, - XFA_ATTRIBUTETYPE_Cdata, dwPacket)) { + XFA_AttributeType::CData, dwPacket)) { return (const wchar_t*)pValue; } return nullptr; @@ -225,7 +225,7 @@ bool GetAttributeDefaultValue_Boolean(XFA_Element eElement, uint32_t dwPacket) { void* pValue; if (XFA_GetAttributeDefaultValue(pValue, eElement, eAttribute, - XFA_ATTRIBUTETYPE_Boolean, dwPacket)) { + XFA_AttributeType::Boolean, dwPacket)) { return !!pValue; } return false; |