summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_node.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-11-08 18:02:12 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-08 18:02:12 +0000
commit6bccc1228ddfccae296f8f4236512caad7cbc1c9 (patch)
treebe2115f4aabd95938a3babdf1b9229a1a633e20a /xfa/fxfa/parser/cxfa_node.cpp
parent1d86501aa9ee49890fbb43db60333a42f947cd74 (diff)
downloadpdfium-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_node.cpp')
-rw-r--r--xfa/fxfa/parser/cxfa_node.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/xfa/fxfa/parser/cxfa_node.cpp b/xfa/fxfa/parser/cxfa_node.cpp
index eb844c5816..a91b87766d 100644
--- a/xfa/fxfa/parser/cxfa_node.cpp
+++ b/xfa/fxfa/parser/cxfa_node.cpp
@@ -1013,10 +1013,10 @@ void CXFA_Node::UpdateNameHash() {
const XFA_NOTSUREATTRIBUTE* pNotsure =
XFA_GetNotsureAttribute(GetElementType(), XFA_Attribute::Name);
WideStringView wsName;
- if (!pNotsure || pNotsure->eType == XFA_ATTRIBUTETYPE_Cdata) {
+ if (!pNotsure || pNotsure->eType == XFA_AttributeType::CData) {
wsName = JSNode()->GetCData(XFA_Attribute::Name);
m_dwNameHash = FX_HashCode_GetW(wsName, false);
- } else if (pNotsure->eType == XFA_ATTRIBUTETYPE_Enum) {
+ } else if (pNotsure->eType == XFA_AttributeType::Enum) {
wsName =
GetAttributeEnumByID(JSNode()->GetEnum(XFA_Attribute::Name))->pName;
m_dwNameHash = FX_HashCode_GetW(wsName, false);