summaryrefslogtreecommitdiff
path: root/fxjs/cjx_node.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-11-08 18:35:50 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-08 18:35:50 +0000
commit42d72ca1aa4763901f7c80e52c9a1c367175286d (patch)
treeaf2fc7fe9709eefb0eeec791f8f0981792a40464 /fxjs/cjx_node.cpp
parent517807e01712c1d4400ec8dde0ab3d9b467bbf04 (diff)
downloadpdfium-42d72ca1aa4763901f7c80e52c9a1c367175286d.tar.xz
Convert XFA_SCRIPT_TYPE to an enum class
This CL converts the XFA_SCRIPT_TYPE enum to the XFA_ScriptType enum class. Change-Id: If30ccd7128aaec63a3d1cb9b1c6f72d3048e4529 Reviewed-on: https://pdfium-review.googlesource.com/18031 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fxjs/cjx_node.cpp')
-rw-r--r--fxjs/cjx_node.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/fxjs/cjx_node.cpp b/fxjs/cjx_node.cpp
index 5cba641d82..318b575b12 100644
--- a/fxjs/cjx_node.cpp
+++ b/fxjs/cjx_node.cpp
@@ -465,7 +465,8 @@ void CJX_Node::Script_TreeClass_ResolveNode(CFXJSE_Arguments* pArguments) {
} else {
const XFA_SCRIPTATTRIBUTEINFO* lpAttributeInfo =
resolveNodeRS.pScriptAttribute;
- if (lpAttributeInfo && lpAttributeInfo->eValueType == XFA_SCRIPT_Object) {
+ if (lpAttributeInfo &&
+ lpAttributeInfo->eValueType == XFA_ScriptType::Object) {
auto pValue =
pdfium::MakeUnique<CFXJSE_Value>(pScriptContext->GetRuntime());
CJX_Object* jsObject = resolveNodeRS.objects.front()->JSObject();