summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_eventdata.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-11-08 18:01:31 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-08 18:01:31 +0000
commit1d86501aa9ee49890fbb43db60333a42f947cd74 (patch)
tree65b0c342fa74b11371a640c4444b87b6d6a6f5ba /xfa/fxfa/parser/cxfa_eventdata.cpp
parent7055dffad92bd7be7cdb20ed12d5cc5890177e7a (diff)
downloadpdfium-1d86501aa9ee49890fbb43db60333a42f947cd74.tar.xz
Convert XFA_ATTRIBUTE to an enum class
This CL converts the XFA_ATTRIBUTE enum to an enum class and fixes up various usages. Change-Id: I3dd17cc412d97eb212a65ce63bb9fa19605e1e91 Reviewed-on: https://pdfium-review.googlesource.com/18050 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_eventdata.cpp')
-rw-r--r--xfa/fxfa/parser/cxfa_eventdata.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/xfa/fxfa/parser/cxfa_eventdata.cpp b/xfa/fxfa/parser/cxfa_eventdata.cpp
index 5d20e35718..f4e62c0d35 100644
--- a/xfa/fxfa/parser/cxfa_eventdata.cpp
+++ b/xfa/fxfa/parser/cxfa_eventdata.cpp
@@ -11,7 +11,7 @@
CXFA_EventData::CXFA_EventData(CXFA_Node* pNode) : CXFA_Data(pNode) {}
int32_t CXFA_EventData::GetActivity() {
- return m_pNode->JSNode()->GetEnum(XFA_ATTRIBUTE_Activity);
+ return m_pNode->JSNode()->GetEnum(XFA_Attribute::Activity);
}
XFA_Element CXFA_EventData::GetEventType() const {
@@ -27,7 +27,7 @@ XFA_Element CXFA_EventData::GetEventType() const {
}
void CXFA_EventData::GetRef(WideStringView& wsRef) {
- m_pNode->JSNode()->TryCData(XFA_ATTRIBUTE_Ref, wsRef, true);
+ m_pNode->JSNode()->TryCData(XFA_Attribute::Ref, wsRef, true);
}
CXFA_ScriptData CXFA_EventData::GetScriptData() const {
@@ -45,6 +45,6 @@ void CXFA_EventData::GetSignDataTarget(WideString& wsTarget) {
return;
WideStringView wsCData;
- pNode->JSNode()->TryCData(XFA_ATTRIBUTE_Target, wsCData, true);
+ pNode->JSNode()->TryCData(XFA_Attribute::Target, wsCData, true);
wsTarget = wsCData;
}