summaryrefslogtreecommitdiff
path: root/xfa/fxfa/fxfa_basic.h
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 /xfa/fxfa/fxfa_basic.h
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 'xfa/fxfa/fxfa_basic.h')
-rw-r--r--xfa/fxfa/fxfa_basic.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/xfa/fxfa/fxfa_basic.h b/xfa/fxfa/fxfa_basic.h
index 9a2fef5415..8695b48df4 100644
--- a/xfa/fxfa/fxfa_basic.h
+++ b/xfa/fxfa/fxfa_basic.h
@@ -1015,9 +1015,9 @@ struct XFA_METHODINFO {
typedef void (CJX_Object::*XFA_ATTRIBUTE_CALLBACK)(CFXJSE_Value* pValue,
bool bSetting,
XFA_Attribute eAttribute);
-enum XFA_SCRIPT_TYPE {
- XFA_SCRIPT_Basic,
- XFA_SCRIPT_Object,
+enum class XFA_ScriptType : uint8_t {
+ Basic,
+ Object,
};
struct XFA_SCRIPTATTRIBUTEINFO {
@@ -1025,7 +1025,7 @@ struct XFA_SCRIPTATTRIBUTEINFO {
const wchar_t* pName;
XFA_ATTRIBUTE_CALLBACK callback;
XFA_Attribute attribute;
- uint16_t eValueType;
+ XFA_ScriptType eValueType;
};
#endif // XFA_FXFA_FXFA_BASIC_H_